Browse Source

fix(nc-gui): list -> sorts

pull/5269/head
Wing-Kam Wong 2 years ago
parent
commit
4df5cbd7f1
  1. 2
      packages/nc-gui/composables/useViewSorts.ts

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

@ -35,7 +35,7 @@ export function useViewSorts(view: Ref<ViewType | undefined>, reloadData?: () =>
const loadSorts = async () => {
if (isPublic.value) {
// todo: sorts missing on `ViewType`
const sharedSorts = (sharedView.value as any)?.list || []
const sharedSorts = (sharedView.value as any)?.sorts || []
sorts.value = [...sharedSorts]
return
}

Loading…
Cancel
Save