Skip to content

Commit

Permalink
fix: the editor content incorrect when changing tabs (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
mortalYoung authored Jun 29, 2021
1 parent 8c4096a commit 7d59c07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export class EditorController extends Controller implements IEditorController {
const tab = current?.tab;
this.openFile(
editorInstance,
tab?.name!,
tab?.id!,
tab?.data?.value!,
tab?.data?.language!
);
Expand Down

0 comments on commit 7d59c07

Please sign in to comment.