From 1f1319a38cc7894ffa9aae8ceaef03646ba1b49b Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 17 Apr 2024 11:07:21 +0000 Subject: [PATCH] refactor: count fallback in singleQuery --- packages/nc-gui/components/smartsheet/Pagination.vue | 2 +- packages/nc-gui/composables/useViewData.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/Pagination.vue b/packages/nc-gui/components/smartsheet/Pagination.vue index 773b32762d..8a248e18cb 100644 --- a/packages/nc-gui/components/smartsheet/Pagination.vue +++ b/packages/nc-gui/components/smartsheet/Pagination.vue @@ -118,7 +118,7 @@ const renderAltOrOptlKey = () => { />
Change page: - + diff --git a/packages/nc-gui/composables/useViewData.ts b/packages/nc-gui/composables/useViewData.ts index 8ce1235199..0f05941f07 100644 --- a/packages/nc-gui/composables/useViewData.ts +++ b/packages/nc-gui/composables/useViewData.ts @@ -215,7 +215,7 @@ export function useViewData( return message.error(await extractSdkResponseErrorMsg(error)) } formattedData.value = formatData(response.list) - paginationData.value = response.pageInfo + paginationData.value = response.pageInfo || {} isPaginationLoading.value = false // to cater the case like when querying with a non-zero offset