fix duplciate bugs
This commit is contained in:
parent
5024d7a93a
commit
cbb61be9f4
1 changed files with 2 additions and 0 deletions
|
|
@ -133,6 +133,8 @@ export function ChatProvider({ children }: ChatProviderProps) {
|
|||
setConversationData(conversation);
|
||||
// Clear placeholder when loading a real conversation
|
||||
setPlaceholderConversation(null);
|
||||
// Clear conversation docs to prevent duplicates when switching conversations
|
||||
setConversationDocs([]);
|
||||
}, []);
|
||||
|
||||
const startNewConversation = useCallback(() => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue