Browse Source

feat(nc-gui): use fetchSharedViewGroupedData for share kanban view

pull/3563/head
Wing-Kam Wong 2 years ago
parent
commit
b264b15fa0
  1. 4
      packages/nc-gui/composables/useKanbanViewData.ts

4
packages/nc-gui/composables/useKanbanViewData.ts

@ -20,7 +20,7 @@ export function useKanbanViewData(
const { project } = useProject()
const { $e, $api } = useNuxtApp()
const { sorts, nestedFilters } = useSmartsheetStoreOrThrow()
const { sharedView, fetchSharedViewData } = useSharedView()
const { sharedView, fetchSharedViewData, fetchSharedViewGroupedData } = useSharedView()
const { isUIAllowed } = useUIPermission()
const isPublic = inject(IsPublicInj, ref(false))
@ -83,7 +83,7 @@ export function useKanbanViewData(
let res
if (isPublic.value) {
// TODO: we need a public API for groupedDataList instead of fetchSharedViewData
res = await fetchSharedViewGroupedData(groupingFieldColumn!.value!.id!)
} else {
res = await api.dbViewRow.groupedDataList(
'noco',

Loading…
Cancel
Save