Skip to content

Commit

Permalink
fix: filters havent been applied when custom category filter had been…
Browse files Browse the repository at this point in the history
… set
  • Loading branch information
ivan-kalachikov committed Jul 15, 2024
1 parent 4d5a146 commit cf5e678
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions client-app/shared/catalog/components/category.vue
Original file line number Diff line number Diff line change
Expand Up @@ -328,15 +328,14 @@ const searchParams = computedEager<ProductsSearchParams>(() => ({
itemsPerPage: props.fixedProductsCount || itemsPerPage.value,
sort: sortQueryParam.value,
keyword: props.keyword || (props.isSearchPage ? searchQueryParam.value : keywordQueryParam.value),
filter:
props.filter ||
[
facetsQueryParam.value,
getFilterExpressionForInStock(savedInStock),
getFilterExpressionForAvailableIn(savedBranches),
]
.filter(Boolean)
.join(" "),
filter: [
props.filter,
facetsQueryParam.value,
getFilterExpressionForInStock(savedInStock),
getFilterExpressionForAvailableIn(savedBranches),
]
.filter(Boolean)
.join(" "),
}));

const isExistSelectedFacets = computedEager<boolean>(() =>
Expand Down

0 comments on commit cf5e678

Please sign in to comment.