Skip to content

Commit

Permalink
Fix error on closing selected tree
Browse files Browse the repository at this point in the history
Signed-off-by: Yevhen Vydolob <[email protected]>
  • Loading branch information
evidolob committed Apr 3, 2020
1 parent 80bc67b commit de9c40c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pipeline/customTektonExplorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class CustomTektonExplorer implements TreeDataProvider<TektonNode>, Dispo
this.rootItems = this.getRoots(this.originalSelection);
this.itemsToHide = this.itemsToHide.filter(item => {
for (const selItem of selection) {
if(selItem.getName() === item.getName()){
if (selItem.getName() === item.getName()) {
return false;
}
}
Expand All @@ -72,7 +72,7 @@ export class CustomTektonExplorer implements TreeDataProvider<TektonNode>, Dispo
this.refresh();
}
} else {
this.rootItems = undefined;
this.rootItems = [];
this.itemsToShow = undefined;
this.originalSelection = [];
this.itemsToHide = [];
Expand Down

0 comments on commit de9c40c

Please sign in to comment.