Fix bigcommerce brands (#837)

This commit is contained in:
Catalin Pinte
2022-10-06 17:08:58 +03:00
committed by GitHub
parent 6c2610584d
commit 990bdf1e6a
3 changed files with 8 additions and 6 deletions

View File

@@ -50,7 +50,7 @@ export default function Search({ categories, brands }: SearchPropsType) {
const { data, error } = useSearch({
search: typeof q === 'string' ? q : '',
categoryId: activeCategory?.id,
brandId: (activeBrand as any)?.id,
brandId: activeBrand?.id,
sort: typeof sort === 'string' ? sort : '',
locale,
})