From 88ec7d6f2a24ac00cc8898cf3dcd4452dc1f299f Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Wed, 18 Sep 2024 15:42:13 -0500 Subject: [PATCH] Fix for undefined ref on hot reload on web --- src/state/shell/composer/useComposerKeyboardShortcut.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/state/shell/composer/useComposerKeyboardShortcut.tsx b/src/state/shell/composer/useComposerKeyboardShortcut.tsx index 0cdc6c7543..01306e36ea 100644 --- a/src/state/shell/composer/useComposerKeyboardShortcut.tsx +++ b/src/state/shell/composer/useComposerKeyboardShortcut.tsx @@ -48,7 +48,7 @@ export function useComposerKeyboardShortcut() { function handler(event: KeyboardEvent) { if (shouldIgnore(event)) return if ( - openDialogs.current.size > 0 || + openDialogs?.current.size > 0 || isModalActive || activeLightbox || isDrawerOpen