Skip to content

Commit 6d7a621

Browse files
committed
Merge #704: Fix searched users not displaying properly when actual page is larger than 1
a803263 fix: fix searched users not displaying properly when actual page is larger than 1 (Mario) Pull request description: Current page has to be reset to 1 when searching users, this PR fix actual page not resetting when searching for users. ACKs for top commit: josecelano: ACK a803263 Tree-SHA512: c9fa83d01f00b5c759fd481804689d25f293fc2cef0c0237e7be9670fd1d2f0ab31de07ec2ff9a46ce6063f035229e7dca2c20da7463f83aeb656202db41db12
2 parents 1ce0407 + a803263 commit 6d7a621

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/admin/settings/users.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ watch(() => route.fullPath, () => {
4242
pageSize.value = isNaN(route.query.pageSize) ? defaultPageSize : parseInt(route.query.pageSize);
4343
});
4444
45-
watch([searchQuery, currentPage], () => {
45+
watch(currentPage, () => {
4646
router.push({
4747
query: {
4848
search: searchQuery.value,
@@ -55,7 +55,7 @@ watch([searchQuery, currentPage], () => {
5555
});
5656
5757
// Resets the current page value to 1 when the page size is changed to display results correctly
58-
watch(pageSize, () => {
58+
watch([pageSize, searchQuery], () => {
5959
router.push({
6060
query: {
6161
search: searchQuery.value,

0 commit comments

Comments
 (0)