diff --git a/frontend/src/components/Gallery/AppBar/Search/SearchTextField.vue b/frontend/src/components/Gallery/AppBar/Search/SearchTextField.vue index 128873a86..a4394b5ef 100644 --- a/frontend/src/components/Gallery/AppBar/Search/SearchTextField.vue +++ b/frontend/src/components/Gallery/AppBar/Search/SearchTextField.vue @@ -96,6 +96,7 @@ onMounted(() => { // Check if search term is set in the URL (empty string is ok) if (searchTerm.value !== null) { + romsStore.resetPagination(); fetchRoms(); } }); @@ -105,6 +106,7 @@ watch( (query) => { if (query.search !== undefined && query.search !== searchTerm.value) { searchTerm.value = query.search as string; + romsStore.resetPagination(); fetchRoms(); } },