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 <patrathewhiz@gmail.com>
  • Loading branch information
enjeck committed Sep 2, 2024
1 parent 95f52c9 commit 979f7fc
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 979f7fc

Please sign in to comment.