Fix for undefined ref on hot reload on web

This commit is contained in:
Eric Bailey
2024-09-18 15:42:13 -05:00
parent 41d4b2c7ef
commit 88ec7d6f2a
@@ -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