Skip to content

Commit

Permalink
Settings Page: Fix critical error when clicking tab
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Jun 26, 2024
1 parent c4e5d66 commit f67f901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/monaco-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default function MonacoEditor( {

return () => {
// eslint-disable-next-line no-unused-expressions
editorRef ? disposeEditor() : cancelable.cancel();
editorRef.current ? disposeEditor() : cancelable.cancel();
clearInterval( interval );
};
// eslint-disable-next-line react-hooks/exhaustive-deps
Expand Down

0 comments on commit f67f901

Please sign in to comment.