Browse Source

fix(nc-gui): pass sort & filter to fetchSharedViewGroupedData

pull/4848/head
Wing-Kam Wong 2 years ago
parent
commit
559da5c7be
  1. 6
      packages/nc-gui/composables/useKanbanViewStore.ts

6
packages/nc-gui/composables/useKanbanViewStore.ts

@ -112,7 +112,10 @@ const [useProvideKanbanViewStore, useKanbanViewStore] = useInjectionState(
let res let res
if (isPublic.value) { if (isPublic.value) {
res = await fetchSharedViewGroupedData(groupingFieldColumn!.value!.id!) res = await fetchSharedViewGroupedData(groupingFieldColumn!.value!.id!, {
sortsArr: sorts.value,
filtersArr: nestedFilters.value,
})
} else { } else {
res = await api.dbViewRow.groupedDataList( res = await api.dbViewRow.groupedDataList(
'noco', 'noco',
@ -138,6 +141,7 @@ const [useProvideKanbanViewStore, useKanbanViewStore] = useInjectionState(
if (stackTitle === null) { if (stackTitle === null) {
where = `(${groupingField.value},is,null)` where = `(${groupingField.value},is,null)`
} }
const response = !isPublic.value const response = !isPublic.value
? await api.dbViewRow.list('noco', project.value.id!, meta.value!.id!, viewMeta.value!.id!, { ? await api.dbViewRow.list('noco', project.value.id!, meta.value!.id!, viewMeta.value!.id!, {
...params, ...params,

Loading…
Cancel
Save