Skip to content

Commit 155ba88

Browse files
committed
fix: nanofix
1 parent 731dde2 commit 155ba88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/containers/AsideNavigation/AsideNavigation.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export function AsideNavigation(props: AsideNavigationProps) {
105105

106106
// Add listener for custom event from Monaco editor
107107
const handleOpenKeyboardShortcutsPanel = () => {
108-
setVisiblePanel(Panel.Hotkeys);
108+
openHotkeysPanel();
109109
};
110110

111111
window.addEventListener('openKeyboardShortcutsPanel', handleOpenKeyboardShortcutsPanel);
@@ -117,7 +117,7 @@ export function AsideNavigation(props: AsideNavigationProps) {
117117
handleOpenKeyboardShortcutsPanel,
118118
);
119119
};
120-
}, []);
120+
}, [openHotkeysPanel]);
121121

122122
return (
123123
<React.Fragment>

0 commit comments

Comments
 (0)