Browse Source

fix(nc-gui): pagination

pull/7716/head
DarkPhoenix2704 9 months ago
parent
commit
f0a2f4a660
  1. 2
      packages/nc-gui/composables/useSharedView.ts
  2. 1
      packages/nocodb/src/services/calendar-datas.service.ts
  3. 1
      packages/nocodb/src/services/datas.service.ts

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

@ -175,7 +175,7 @@ export function useSharedView() {
return await $api.dbCalendarViewRow.publicDataCalendarRowList(
sharedView.value.uuid!,
{
limit: sharedView.value?.type === ViewTypes.MAP ? 1000 : undefined,
limit: sharedView.value?.type === ViewTypes.CALENDAR ? 3000 : undefined,
...param,
filterArrJson: JSON.stringify(param.filtersArr ?? nestedFilters.value),
sortArrJson: JSON.stringify(param.sortsArr ?? sorts.value),

1
packages/nocodb/src/services/calendar-datas.service.ts

@ -173,6 +173,7 @@ export class CalendarDatasService {
model,
view,
query,
ignorePagination: true,
});
if (!data) NcError.notFound('Data not found');

1
packages/nocodb/src/services/datas.service.ts

@ -190,6 +190,7 @@ export class DatasService {
await baseModel.list(listArgs, {
ignoreViewFilterAndSort,
throwErrorIfInvalidParams: param.throwErrorIfInvalidParams,
ignorePagination: param.ignorePagination,
}),
{},
listArgs,

Loading…
Cancel
Save