mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-27 04:36:12 +01:00
👩💻 fix: Minor UI fixes (#2548)
* fix(useMessageHelpers): define iconEndpoint * fix: rely on Assistant Switcher effect for defining `assistant_id`, ensure ChatRoute `newConversation` only fires once
This commit is contained in:
parent
4d0806d3e8
commit
2720327aa1
3 changed files with 6 additions and 3 deletions
|
|
@ -58,7 +58,7 @@ export default function ChatRoute() {
|
|||
modelsData: modelsQuery.data,
|
||||
template: conversation ? conversation : undefined,
|
||||
});
|
||||
hasSetConversation.current = !!assistants;
|
||||
hasSetConversation.current = true;
|
||||
} else if (
|
||||
initialConvoQuery.data &&
|
||||
endpointsQuery.data &&
|
||||
|
|
@ -73,7 +73,7 @@ export default function ChatRoute() {
|
|||
modelsData: modelsQuery.data,
|
||||
keepLatestMessage: true,
|
||||
});
|
||||
hasSetConversation.current = !!assistants;
|
||||
hasSetConversation.current = true;
|
||||
} else if (
|
||||
!hasSetConversation.current &&
|
||||
!modelsQuery.data?.initial &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue