Skip to content

Commit

Permalink
fix: updateTab will change the reference of current tab (#779)
Browse files Browse the repository at this point in the history
  • Loading branch information
mortalYoung authored Jul 14, 2022
1 parent 819696e commit 3114bd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/workbench/editorService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,8 @@ export class EditorService
}

this.setState({
current,
groups,
current: current ? { ...current } : current,
groups: [...groups],
});
}

Expand Down

0 comments on commit 3114bd5

Please sign in to comment.