Skip to content

Commit

Permalink
Update product-promotion-component-controller.js
Browse files Browse the repository at this point in the history
  • Loading branch information
qiyundai committed Jun 7, 2024
1 parent 20c4ece commit d54dd27
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export function onSubmit(component, props) {
const productGroup = component.querySelector('product-selector-group');

const selectedProducts = productGroup.getSelectedProducts();
const selectedProducts = productGroup?.getSelectedProducts();

const relatedProducts = selectedProducts.map((p) => ({
name: p.title,
Expand Down

0 comments on commit d54dd27

Please sign in to comment.