saleor: integrate collections

This commit is contained in:
Zaiste
2021-05-13 13:22:57 +02:00
parent 9ca6c38755
commit f5ec8e17a4
3 changed files with 8 additions and 14 deletions

View File

@@ -45,7 +45,7 @@ export const handler: SWRHook<
let edges
if (categoryId) {
edges = data.node?.products?.edges ?? []
edges = data.collection?.products?.edges ?? []
// FIXME @zaiste, no `vendor` in Saleor
// if (brandId) {
// edges = edges.filter(