We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 731dde2 commit 155ba88Copy full SHA for 155ba88
src/containers/AsideNavigation/AsideNavigation.tsx
@@ -105,7 +105,7 @@ export function AsideNavigation(props: AsideNavigationProps) {
105
106
// Add listener for custom event from Monaco editor
107
const handleOpenKeyboardShortcutsPanel = () => {
108
- setVisiblePanel(Panel.Hotkeys);
+ openHotkeysPanel();
109
};
110
111
window.addEventListener('openKeyboardShortcutsPanel', handleOpenKeyboardShortcutsPanel);
@@ -117,7 +117,7 @@ export function AsideNavigation(props: AsideNavigationProps) {
117
handleOpenKeyboardShortcutsPanel,
118
);
119
120
- }, []);
+ }, [openHotkeysPanel]);
121
122
return (
123
<React.Fragment>
0 commit comments