diff options
author | Eric Bailey <git@esb.lol> | 2024-09-18 15:45:20 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-18 15:45:20 -0500 |
commit | 6c8ef696549c3c08d39166e5620c74e6cfea173a (patch) | |
tree | c37960bcd7eb0ae5421ba097b51bb2b13b7014d6 /src/state/shell | |
parent | 41d4b2c7eff58db56e732ca1cb2c82b9fd1ef6aa (diff) | |
download | voidsky-6c8ef696549c3c08d39166e5620c74e6cfea173a.tar.zst |
Fix for undefined ref on hot reload on web (#5407)
Diffstat (limited to 'src/state/shell')
-rw-r--r-- | src/state/shell/composer/useComposerKeyboardShortcut.tsx | 2 |
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 |