From 3bdeeb82015e3e7988242ecd8b8774a6d8c4af9f Mon Sep 17 00:00:00 2001 From: Jose Alberto Hernandez Date: Tue, 7 Jan 2025 07:36:57 -0500 Subject: [PATCH] fix: Batch jobs dialog confirmation delete button --- .../run-selected-jobs-table.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/system/manage-jobs/scheduler-jobs/run-selected-jobs-popover/run-selected-jobs-table/run-selected-jobs-table.component.ts b/src/app/system/manage-jobs/scheduler-jobs/run-selected-jobs-popover/run-selected-jobs-table/run-selected-jobs-table.component.ts index 2c56a575c..68d3b95f5 100644 --- a/src/app/system/manage-jobs/scheduler-jobs/run-selected-jobs-popover/run-selected-jobs-table/run-selected-jobs-table.component.ts +++ b/src/app/system/manage-jobs/scheduler-jobs/run-selected-jobs-popover/run-selected-jobs-table/run-selected-jobs-table.component.ts @@ -12,7 +12,7 @@ import { JobDataType } from '../run-selected-jobs-popover.component'; export class RunSelectedJobsTableComponent { /** Selected Jobs For Table */ - @Input() selectedJobs: JobDataType[]; + @Input() selectedJobs: JobDataType[] = []; /** Confirmed Jobs */ @Output() confirmedJobs: EventEmitter = new @@ -31,7 +31,7 @@ export class RunSelectedJobsTableComponent { removeJobFromSelection(index: number): void { let idx = 0; const finalSelectedJobs: JobDataType[] = []; - for (; idx < this.selectedJobs.length; idx) { + for (; idx < this.selectedJobs.length; idx++) { if (idx !== index) { finalSelectedJobs.push(this.selectedJobs[idx]); }