diff --git a/client/ui/app-state/AppStateContextWrapper.tsx b/client/ui/app-state/AppStateContextWrapper.tsx index 0bbd17c..df28273 100644 --- a/client/ui/app-state/AppStateContextWrapper.tsx +++ b/client/ui/app-state/AppStateContextWrapper.tsx @@ -73,7 +73,8 @@ export default function DialogContextWrapper({ children, useRef }: { children: R setUseChatFragmentDialog(inDialog || false) setUserOrChatInfoDialogState([]) setCurrentSelectedChatId(chat) - chatFragmentDialogRef.current!.open = true + + useChatFragmentDialog && (chatFragmentDialogRef.current!.open = true) } static closeChat() { if (chatFragmentDialogRef.current!.open) {