Skip to content

Commit bdc68f8

Browse files
botisSmilePierreGauthier
authored andcommitted
fix(#1278106): [Example App] Add current category on viewMoreProductFacetOptions GraphQl call
1 parent 1c0d1ec commit bdc68f8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

front/example-app/src/hooks/useProducts.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ export function useProducts(
114114
if (search) {
115115
variables.search = search
116116
}
117+
if (currentCategoryId) {
118+
variables.currentCategoryId = currentCategoryId
119+
}
117120
if (queryFilters.category__id) {
118121
variables.currentCategoryId = (
119122
queryFilters.category__id as ICategoryTypeDefaultFilterInputType

0 commit comments

Comments
 (0)