Skip to content

Commit 8556757

Browse files
authored
fix: include product_type in product API request (#843)
In #691 I replaced the better part of the API layer with the SDK, but forgot to include this parameter.
1 parent f1ba088 commit 8556757

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)