Skip to content

Commit

Permalink
fix: change noJobsNode declaration to Job class
Browse files Browse the repository at this point in the history
Signed-off-by: Trae Yelovich <[email protected]>
  • Loading branch information
traeok committed Jul 7, 2023
1 parent 2be5c4c commit afd5d8c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/zowe-explorer/src/job/ZoweJobNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,13 @@ export class Job extends ZoweTreeNode implements IZoweJobTreeNode {
// Fetch jobs under session node
const jobs = await this.getJobs(this._owner, this._prefix, this._searchId, this._jobStatus);
if (!jobs.length) {
const noJobsNode = new Spool(
const noJobsNode = new Job(
localize("getChildren.noJobs", "There are no jobs to display"),
vscode.TreeItemCollapsibleState.None,
this,
null,
null,
null,
this
null
);
noJobsNode.iconPath = null;
return [noJobsNode];
Expand Down

0 comments on commit afd5d8c

Please sign in to comment.