Skip to content

Commit

Permalink
fix table pagination filter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
yashkanakiya committed Aug 26, 2023
1 parent 0dc8941 commit 6d0edb4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion resources/scripts/components/base/base-table/BaseTable.vue
Expand Up @@ -309,6 +309,8 @@ function changeSorting(column) {
}
if (!usesLocalData.value) {
if (pagination.value)
pagination.value.currentPage = 1
mapDataToRows()
}
}
Expand All @@ -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()
}
Expand Down

0 comments on commit 6d0edb4

Please sign in to comment.