Skip to content

Commit

Permalink
fix: disable preview
Browse files Browse the repository at this point in the history
  • Loading branch information
dylandepass committed Oct 18, 2024
1 parent 918ca03 commit dd25a23
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/catalog/product.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ export async function handleProductPutRequest(ctx, config, request) {
if (!previewResponse.ok) {
return errorResponse(400, 'failed to preview product');
}
const publishResponse = await callAdmin(config, 'publish', path);
if (!publishResponse.ok) {
return errorResponse(400, 'failed to publish product');
}
// const publishResponse = await callAdmin(config, 'publish', path);
// if (!publishResponse.ok) {
// return errorResponse(400, 'failed to publish product');
// }
}
}
return new Response(undefined, { status: 201 });
Expand Down

0 comments on commit dd25a23

Please sign in to comment.