about summary refs log tree commit diff
path: root/src/state
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2024-09-18 15:45:20 -0500
committerGitHub <noreply@github.com>2024-09-18 15:45:20 -0500
commit6c8ef696549c3c08d39166e5620c74e6cfea173a (patch)
treec37960bcd7eb0ae5421ba097b51bb2b13b7014d6 /src/state
parent41d4b2c7eff58db56e732ca1cb2c82b9fd1ef6aa (diff)
downloadvoidsky-6c8ef696549c3c08d39166e5620c74e6cfea173a.tar.zst
Fix for undefined ref on hot reload on web (#5407)
Diffstat (limited to 'src/state')
-rw-r--r--src/state/shell/composer/useComposerKeyboardShortcut.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state/shell/composer/useComposerKeyboardShortcut.tsx b/src/state/shell/composer/useComposerKeyboardShortcut.tsx
index 0cdc6c754..01306e36e 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