From 559da5c7be2e5e84c1dc7e5cf1f93b8fd6006e56 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Wed, 18 Jan 2023 17:18:49 +0800 Subject: [PATCH] fix(nc-gui): pass sort & filter to fetchSharedViewGroupedData --- packages/nc-gui/composables/useKanbanViewStore.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui/composables/useKanbanViewStore.ts b/packages/nc-gui/composables/useKanbanViewStore.ts index 3413b4ffe1..b33ddd4f9c 100644 --- a/packages/nc-gui/composables/useKanbanViewStore.ts +++ b/packages/nc-gui/composables/useKanbanViewStore.ts @@ -112,7 +112,10 @@ const [useProvideKanbanViewStore, useKanbanViewStore] = useInjectionState( let res if (isPublic.value) { - res = await fetchSharedViewGroupedData(groupingFieldColumn!.value!.id!) + res = await fetchSharedViewGroupedData(groupingFieldColumn!.value!.id!, { + sortsArr: sorts.value, + filtersArr: nestedFilters.value, + }) } else { res = await api.dbViewRow.groupedDataList( 'noco', @@ -138,6 +141,7 @@ const [useProvideKanbanViewStore, useKanbanViewStore] = useInjectionState( if (stackTitle === null) { where = `(${groupingField.value},is,null)` } + const response = !isPublic.value ? await api.dbViewRow.list('noco', project.value.id!, meta.value!.id!, viewMeta.value!.id!, { ...params,