Skip to content

Commit

Permalink
fix: fix searched users not displaying properly when actual page is l…
Browse files Browse the repository at this point in the history
…arger than 1
  • Loading branch information
mario-nt committed Jan 29, 2025
1 parent 1ce0407 commit a803263
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/admin/settings/users.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ watch(() => route.fullPath, () => {
pageSize.value = isNaN(route.query.pageSize) ? defaultPageSize : parseInt(route.query.pageSize);
});
watch([searchQuery, currentPage], () => {
watch(currentPage, () => {
router.push({
query: {
search: searchQuery.value,
Expand All @@ -55,7 +55,7 @@ watch([searchQuery, currentPage], () => {
});
// Resets the current page value to 1 when the page size is changed to display results correctly
watch(pageSize, () => {
watch([pageSize, searchQuery], () => {
router.push({
query: {
search: searchQuery.value,
Expand Down

0 comments on commit a803263

Please # to comment.