Browse Source

fix(nc-gui):offset not working correctly

pull/7611/head
DarkPhoenix2704 9 months ago
parent
commit
fe69a383d4
  1. 2
      packages/nc-gui/composables/useCalendarViewStore.ts

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

@ -320,10 +320,10 @@ const [useProvideCalendarViewStore, useCalendarViewStore] = useInjectionState(
async function loadMoreSidebarData(params: Parameters<Api<any>['dbViewRow']['list']>[4] = {}) { async function loadMoreSidebarData(params: Parameters<Api<any>['dbViewRow']['list']>[4] = {}) {
if ((!base?.value?.id || !meta.value?.id || !viewMeta.value?.id) && !isPublic.value) return if ((!base?.value?.id || !meta.value?.id || !viewMeta.value?.id) && !isPublic.value) return
if (isSidebarLoading.value) return if (isSidebarLoading.value) return
const response = !isPublic.value const response = !isPublic.value
? await api.dbViewRow.list('noco', base.value.id!, meta.value!.id!, viewMeta.value.id, { ? await api.dbViewRow.list('noco', base.value.id!, meta.value!.id!, viewMeta.value.id, {
...params, ...params,
offset: params.offset,
...{}, ...{},
...{}, ...{},
...(isUIAllowed('filterSync') ...(isUIAllowed('filterSync')

Loading…
Cancel
Save