mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-03-26 17:51:54 +01:00
Fix disapearing chat sessions
This commit is contained in:
parent
7869f23e12
commit
40c420f845
@ -69,6 +69,12 @@ export const ChatSidebar = ({
|
||||
|
||||
const currentChatId = currentChatSession?.id;
|
||||
|
||||
// prevent the NextJS Router cache from causing the chat sidebar to not
|
||||
// update / show an outdated list of chats
|
||||
useEffect(() => {
|
||||
router.refresh();
|
||||
}, [currentChatId]);
|
||||
|
||||
return (
|
||||
<div
|
||||
className={`
|
||||
|
Loading…
x
Reference in New Issue
Block a user