Skip to content

Commit

Permalink
clean up logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ajshedivy committed Jan 14, 2025
1 parent 9ff1e73 commit b0aa3c2
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/views/jobManager/jobManagerView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,16 +304,15 @@ export class JobManagerView implements TreeDataProvider<any> {
updateStatusBar();

const selectedJob = JobManager.getSelection();
const selectedSchema = selectedJob?.job.options.libraries[0];


// re-register db2i tables context provider with current schema
const selectedSchema = selectedJob?.job.options.libraries[0]?.trim().toLowerCase();
const currentSchema = provider?.getCurrentSchema().trim().toLowerCase();
if (
provider &&
selectedJob !== undefined &&
provider.getCurrentSchema() &&
selectedJob &&
selectedSchema &&
provider.getCurrentSchema().trim().toLowerCase() !==
selectedSchema.trim().toLowerCase()
currentSchema !== selectedSchema
) {
registerDb2iTablesProvider(selectedSchema);
}
Expand Down

0 comments on commit b0aa3c2

Please sign in to comment.