Browse Source

fix: array for continue issue - user sort management

pull/7276/head
Ramesh Mane 11 months ago
parent
commit
b4bc820be2
  1. 2
      packages/nc-gui/composables/useUserSorts.ts

2
packages/nc-gui/composables/useUserSorts.ts

@ -114,7 +114,7 @@ export function useUserSorts() {
let sortCondition = 0 let sortCondition = 0
for (const { field, direction } of sortsConfig) { for (const { field, direction } of sortsConfig) {
if (a[field]) continue if (!a[field]) continue
if (direction === 'asc') { if (direction === 'asc') {
sortCondition = sortCondition || a[field]?.localeCompare(b[field]) sortCondition = sortCondition || a[field]?.localeCompare(b[field])

Loading…
Cancel
Save