mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 00:56:38 +00:00
fix(gui): pass sortArr value as argument
Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
@@ -180,7 +180,7 @@ export function useViewData(
|
||||
...(isUIAllowed('filterSync') ? {} : { filterArrJson: JSON.stringify(nestedFilters.value) }),
|
||||
where: where?.value,
|
||||
})
|
||||
: await fetchSharedViewData()
|
||||
: await fetchSharedViewData({ sortsArr: sorts.value, filtersArr: nestedFilters.value })
|
||||
formattedData.value = formatData(response.list)
|
||||
paginationData.value = response.pageInfo
|
||||
if (viewMeta.value?.type === ViewTypes.GRID) {
|
||||
@@ -271,7 +271,10 @@ export function useViewData(
|
||||
|
||||
async function changePage(page: number) {
|
||||
paginationData.value.page = page
|
||||
await loadData({ offset: (page - 1) * (paginationData.value.pageSize || appInfoDefaultLimit), where: where?.value } as any)
|
||||
await loadData({
|
||||
offset: (page - 1) * (paginationData.value.pageSize || appInfoDefaultLimit),
|
||||
where: where?.value,
|
||||
} as any)
|
||||
$e('a:grid:pagination')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user