Skip to content

Commit 3114bd5

Browse files
authored
fix: updateTab will change the reference of current tab (#779)
1 parent 819696e commit 3114bd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/workbench/editorService.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,8 @@ export class EditorService
355355
}
356356

357357
this.setState({
358-
current,
359-
groups,
358+
current: current ? { ...current } : current,
359+
groups: [...groups],
360360
});
361361
}
362362

0 commit comments

Comments
 (0)