Skip to content

Commit

Permalink
fix(core): Fix duplication of product without featured asset
Browse files Browse the repository at this point in the history
Fixes #2803
  • Loading branch information
michaelbromley committed Apr 25, 2024
1 parent 025a9c7 commit f5e866b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const productDuplicator = new EntityDuplicator({
};
});
const productInput: CreateProductInput = {
featuredAssetId: product.featuredAsset.id,
featuredAssetId: product.featuredAsset?.id,
enabled: false,
assetIds: product.assets.map(value => value.assetId),
facetValueIds: product.facetValues.map(value => value.id),
Expand Down

0 comments on commit f5e866b

Please sign in to comment.