Skip to content

Commit 7d59c07

Browse files
authored
fix: the editor content incorrect when changing tabs (#210)
1 parent 8c4096a commit 7d59c07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controller/editor.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export class EditorController extends Controller implements IEditorController {
181181
const tab = current?.tab;
182182
this.openFile(
183183
editorInstance,
184-
tab?.name!,
184+
tab?.id!,
185185
tab?.data?.value!,
186186
tab?.data?.language!
187187
);

0 commit comments

Comments
 (0)