mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-30 14:39:55 +02:00
Fix disapearing chat sessions
This commit is contained in:
@@ -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={`
|
||||
|
Reference in New Issue
Block a user