mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-21 02:40:14 +01:00
fix: correctly pass modelsData to newConversation, also prevent navigation in this case (#1162)
This commit is contained in:
parent
5ab9802aa9
commit
efe057e0d8
2 changed files with 3 additions and 2 deletions
|
|
@ -51,7 +51,7 @@ const useConversation = () => {
|
|||
setSubmission({} as TSubmission);
|
||||
resetLatestMessage();
|
||||
|
||||
if (conversation.conversationId === 'new') {
|
||||
if (conversation.conversationId === 'new' && !modelsData) {
|
||||
navigate('/chat/new');
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue