Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Fix filters not being set on SSR (#386)

Olga Bulat4171a0c3f3cf
diff --git a/src/pages/search.vue b/src/pages/search.vue
index 19d461dc6..c74641411 100644
--- a/src/pages/search.vue
+++ b/src/pages/search.vue
@@ -96,11 +96,13 @@ const BrowsePage = {
setSearchTypeFromUrl: SET_SEARCH_TYPE_FROM_URL,
updateSearchType: UPDATE_SEARCH_TYPE,
}),
+ ...mapActions(FILTER, {
+ setFiltersFromUrl: SET_FILTERS_FROM_URL,
+ }),
...mapMutations(SEARCH, {
setQuery: SET_QUERY,
}),
...mapMutations(FILTER, {
- setFiltersFromUrl: SET_FILTERS_FROM_URL,
setFilterVisibility: SET_FILTER_IS_VISIBLE,
}),
getMediaItems(params, mediaType) {