Skip to content

Commit 2d6fa4c

Browse files
committed
fix
1 parent f077639 commit 2d6fa4c

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

src/livecodes/core.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1969,11 +1969,12 @@ const loadSelectedScreen = () => {
19691969
return false;
19701970
};
19711971

1972-
const getAllEditors = (): CodeEditor[] => [
1973-
...Object.values(editors),
1974-
...[toolsPane?.console?.getEditor?.()],
1975-
...[toolsPane?.compiled?.getEditor?.()],
1976-
];
1972+
const getAllEditors = (): CodeEditor[] =>
1973+
[
1974+
...Object.values(editors),
1975+
toolsPane?.console?.getEditor?.(),
1976+
toolsPane?.compiled?.getEditor?.(),
1977+
].filter((x) => x != null);
19771978

19781979
const setTheme = (theme: Theme, editorTheme: Config['editorTheme']) => {
19791980
const themes = ['light', 'dark'];

0 commit comments

Comments
 (0)