Skip to content

Commit 69cf99d

Browse files
committed
fix
1 parent b717efc commit 69cf99d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/livecodes/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1524,7 +1524,7 @@ const applyConfig = async (newConfig: Partial<Config>, reload = false) => {
15241524
...getFormatterConfig(newConfig as Config),
15251525
};
15261526

1527-
const hasEditorConfig = Object.values(editorConfig).some((value) => value != null);
1527+
const hasEditorConfig = Object.keys(editorConfig).some((k) => k in newConfig);
15281528
if (hasEditorConfig && newConfig.editor && newConfig.editor !== currentEditorConfig.editor) {
15291529
shouldReloadEditors = true;
15301530
}

0 commit comments

Comments
 (0)