[scheduler] Avoid variable name conflicting with each other
@@ -85,9 +85,9 @@ class AssistSchedulePanel {
const setSelectedNotebookSub = huePubSub.subscribe('jobbrowser.schedule.data', jobs => {
if (this.selectedNotebook() && this.selectedNotebook().viewSchedulerId()) {
- const jobs = jobs.filter(job => this.selectedNotebook().viewSchedulerId() === job.id);
+ const job = jobs.filter(job => this.selectedNotebook().viewSchedulerId() === job.id);
this.selectedNotebook().isSchedulerJobRunning(
- jobs.length > 0 && jobs[0].apiStatus === 'RUNNING'
+ job.length > 0 && job[0].apiStatus === 'RUNNING'
);
}
});
