Skip to content

Commit

Permalink
add selectedCellType to hook
Browse files Browse the repository at this point in the history
  • Loading branch information
juanbercoff committed Jun 20, 2023
1 parent 5af393b commit ae056a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/menus/CodeEditor/CodeEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export const CodeEditor = (props: CodeEditorProps) => {
}, [selectedCell]);

useAlertOnUnsavedChanges(hasUnsavedChanges);
useEditorCellHighlights(isValidRef, editorRef, monacoRef);
useEditorCellHighlights(isValidRef, editorRef, monacoRef, selectedCell?.type);
useEditorOnSelectionChange(isValidRef, editorRef);

const closeEditor = ({ skipUnsavedChangesCheck } = { skipUnsavedChangesCheck: false }) => {
Expand Down

0 comments on commit ae056a9

Please sign in to comment.