Skip to content

Commit 491f2f5

Browse files
committed
fix
1 parent e6336f9 commit 491f2f5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/editor/src/lib/Editor.svelte

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,6 @@
120120
editor_states.set(file.name, state);
121121
}
122122
}
123-
124-
select_state(workspace.selected_name);
125123
}
126124
127125
/**
@@ -132,6 +130,7 @@
132130
export async function reset() {
133131
editor_states.clear();
134132
await update_files(workspace.files);
133+
select_state(workspace.selected_name);
135134
}
136135
137136
function select_state(selected_name: string | null) {

0 commit comments

Comments
 (0)