Skip to content

Commit 2349702

Browse files
committed
fix(App): fix selecting default editor in editor settings
1 parent 54c1860 commit 2349702

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/livecodes/core.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4042,7 +4042,8 @@ const handleEmbed = () => {
40424042

40434043
const changeEditorSettings = (newConfig: Partial<UserConfig> | null) => {
40444044
if (!newConfig) return;
4045-
const shouldReload = newConfig.editor != null && newConfig.editor !== getConfig().editor;
4045+
const shouldReload =
4046+
newConfig.editor !== getConfig().editor && !((newConfig.editor || '') in getActiveEditor());
40464047

40474048
setUserConfig(newConfig);
40484049
const updatedConfig = getConfig();

0 commit comments

Comments
 (0)