Skip to content

Commit

Permalink
fix(ds/filter): Refresh PDS if session/PDS had a previous filter
Browse files Browse the repository at this point in the history
Signed-off-by: Trae Yelovich <[email protected]>
  • Loading branch information
traeok committed Oct 10, 2023
1 parent 41dffbc commit 3884a3e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/zowe-explorer/src/dataset/DatasetTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1420,8 +1420,9 @@ export class DatasetTree extends ZoweTreeProvider implements IZoweTree<IZoweData
}

// Updating filter for PDS node
// if a filter was already set, just refresh to grab any missing nodes
if (oldFilter != null) {
// if a filter was already set for either session or PDS, just refresh to grab any missing nodes
const sessionFilterPresent = (node.getSessionNode() as IZoweDatasetTreeNode).filter;
if (oldFilter != null || sessionFilterPresent != null) {
this.refreshElement(node);
return;
}
Expand Down

0 comments on commit 3884a3e

Please sign in to comment.