reset pagination on filter update

This commit is contained in:
Christian Beutel
2025-08-04 19:16:42 +02:00
parent 482d90c893
commit ef4bc9c961

View File

@@ -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;