Skip to content

Commit

Permalink
Merge pull request #1338 from nextcloud/fix/1336
Browse files Browse the repository at this point in the history
fix: check sorting array is non-empty
  • Loading branch information
juliusknorr authored Sep 2, 2024
2 parents 95f52c9 + 979f7fc commit 8f20f35
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 8f20f35

Please sign in to comment.