reset pagination on filter update
This commit is contained in:
@@ -38,7 +38,7 @@
|
|||||||
|
|
||||||
async function handleFilterUpdate() {
|
async function handleFilterUpdate() {
|
||||||
loading = true;
|
loading = true;
|
||||||
const response = await trails_search_filter(filter, pagination.page);
|
const response = await trails_search_filter(filter, 1);
|
||||||
trails = response.items;
|
trails = response.items;
|
||||||
pagination.page = response.page;
|
pagination.page = response.page;
|
||||||
pagination.totalPages = response.totalPages;
|
pagination.totalPages = response.totalPages;
|
||||||
|
|||||||
Reference in New Issue
Block a user