Skip to content

Commit

Permalink
Fix the bug in jobset sorting (#3418)
Browse files Browse the repository at this point in the history
  • Loading branch information
mijovicmia committed Feb 21, 2024
1 parent 10fe780 commit 8ad59de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/lookout/ui/src/hooks/useJobsTableData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function canOrderByField(lookoutFilters: JobFilter[], groupedColumns: string[],

// Exclude column and everything after from groupedColumns for direct comparison
const index = groupedColumns.findIndex((col) => col === id)
const filteredGroupedColumns = groupedColumns.slice(0, index)
const filteredGroupedColumns = index >= 0 ? groupedColumns.slice(0, index) : groupedColumns

// Check if the lengths are different
if (filterFields.length !== filteredGroupedColumns.length) {
Expand Down

0 comments on commit 8ad59de

Please sign in to comment.