Skip to content

Commit

Permalink
fix: Batch jobs dialog confirmation delete button
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Alberto Hernandez authored and alberto-art3ch committed Jan 7, 2025
1 parent c9ff143 commit 3bdeeb8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<JobDataType[]> = new
Expand All @@ -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]);
}
Expand Down

0 comments on commit 3bdeeb8

Please sign in to comment.