Skip to content

Commit

Permalink
fix(product-media-gallery): validate the presence of feature_media
Browse files Browse the repository at this point in the history
  • Loading branch information
montalvomiguelo committed May 8, 2024
1 parent 47bd01b commit 152508e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class ProductMediaGallery extends HTMLElement {
handleVariantChange({ detail }) {
const { sectionId, variant } = detail

if (!variant) {
if (!variant || !variant.featured_media) {
return
}

Expand Down

0 comments on commit 152508e

Please sign in to comment.