fix table pagination filter issue

This commit is contained in:
yashkanakiya
2023-08-26 10:48:43 +05:30
parent 0dc8941975
commit 6d0edb4b5a

View File

@ -309,6 +309,8 @@ function changeSorting(column) {
}
if (!usesLocalData.value) {
if (pagination.value)
pagination.value.currentPage = 1
mapDataToRows()
}
}
@ -326,7 +328,10 @@ async function pageChange(page) {
await mapDataToRows()
}
async function refresh() {
async function refresh(isPreservePage = false) {
if (pagination.value && !isPreservePage)
pagination.value.currentPage = 1
await mapDataToRows()
}