Skip to content

Commit

Permalink
fix: check sorting array is non-empty
Browse files Browse the repository at this point in the history
Signed-off-by: Cleopatra Enjeck M <[email protected]>
  • Loading branch information
enjeck committed Sep 2, 2024
1 parent d987132 commit 66d0761
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/shared/components/ncTable/mixins/columnClass.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ export class AbstractColumn {
}

getNextSortsResult(nextSorts, rowA, rowB) {
if (!nextSorts) {
return 0
}
for (const sort of nextSorts) {
const result = sort(rowA, rowB)
if (result !== 0) {
Expand Down

0 comments on commit 66d0761

Please sign in to comment.