Skip to content

Commit 9eaa0a4

Browse files
committed
fix: include product_type in product API request
1 parent f1ba088 commit 9eaa0a4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/routes/products/[barcode]/+page.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export const load: PageLoad = async ({ params, fetch }) => {
3939
const folkApi = createFolksonomyApi(fetch);
4040

4141
const { data: state, error: apiError } = await productsApi.getProductV3(params.barcode, {
42+
product_type: 'all',
4243
fields: ['all', 'knowledge_panels']
4344
});
4445

0 commit comments

Comments
 (0)