fix: Cannot set properties of undefined (setting 'open') in opening ChatFragmentDialog
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user