Skip to content

Commit 0551457

Browse files
committed
Fix editor theming
1 parent 6ede177 commit 0551457

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/Tiles/Editor.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,8 @@ export default ({
231231

232232
useEffect(() => {
233233
if (!editor || !initialized) return;
234-
235234
monaco.editor.setTheme(mode === "dark" ? "vs-dark" : "vs");
236-
}, [mode, editor, initialized]);
235+
}, [mode, editor, initialized, openFiles]);
237236

238237
useEffect(() => {
239238
if (!monacoEl.current || !editor) return;

0 commit comments

Comments
 (0)