Skip to content

Commit

Permalink
rerender in tree throws on root
Browse files Browse the repository at this point in the history
courtesy of @JoaMoreno

Fixes #78371
  • Loading branch information
alexr00 committed Aug 2, 2019
1 parent 2619364 commit e250129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/base/browser/ui/tree/asyncDataTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ export class AsyncDataTree<TInput, T, TFilterData = void> implements IDisposable
// View

rerender(element?: T): void {
if (element === undefined) {
if (element === undefined || element === this.root.element) {
this.tree.rerender();
return;
}
Expand Down

0 comments on commit e250129

Please sign in to comment.