|
@@ -85,9 +85,9 @@ class AssistSchedulePanel {
|
|
|
|
|
|
|
|
const setSelectedNotebookSub = huePubSub.subscribe('jobbrowser.schedule.data', jobs => {
|
|
const setSelectedNotebookSub = huePubSub.subscribe('jobbrowser.schedule.data', jobs => {
|
|
|
if (this.selectedNotebook() && this.selectedNotebook().viewSchedulerId()) {
|
|
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(
|
|
this.selectedNotebook().isSchedulerJobRunning(
|
|
|
- jobs.length > 0 && jobs[0].apiStatus === 'RUNNING'
|
|
|
|
|
|
|
+ job.length > 0 && job[0].apiStatus === 'RUNNING'
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|