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)
|
setUseChatFragmentDialog(inDialog || false)
|
||||||
setUserOrChatInfoDialogState([])
|
setUserOrChatInfoDialogState([])
|
||||||
setCurrentSelectedChatId(chat)
|
setCurrentSelectedChatId(chat)
|
||||||
chatFragmentDialogRef.current!.open = true
|
|
||||||
|
useChatFragmentDialog && (chatFragmentDialogRef.current!.open = true)
|
||||||
}
|
}
|
||||||
static closeChat() {
|
static closeChat() {
|
||||||
if (chatFragmentDialogRef.current!.open) {
|
if (chatFragmentDialogRef.current!.open) {
|
||||||
|
|||||||
Reference in New Issue
Block a user