diff --git a/packages/ui/src/layouts/shared/browse-tab/composables/use-browse-search.ts b/packages/ui/src/layouts/shared/browse-tab/composables/use-browse-search.ts index 0f194a686..496df6107 100644 --- a/packages/ui/src/layouts/shared/browse-tab/composables/use-browse-search.ts +++ b/packages/ui/src/layouts/shared/browse-tab/composables/use-browse-search.ts @@ -180,6 +180,26 @@ export function useBrowseSearch(options: UseBrowseSearchOptions): BrowseSearchSt let searchVersion = 0 let searchDebounceTimer: ReturnType | null = null + const providedFiltersOrEmpty = computed(() => options.providedFilters?.value ?? []) + + watch( + [ + query, + maxResults, + options.projectType, + currentSortType, + serverCurrentSortType, + currentFilters, + serverCurrentFilters, + overriddenProvidedFilterTypes, + providedFiltersOrEmpty, + ], + () => { + currentPage.value = 1 + }, + { deep: true }, + ) + watch(effectiveRequestParams, (newVal, oldVal) => { debug('effectiveRequestParams changed', { from: oldVal?.substring(0, 80),