Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Commit

Permalink
Improved: the code to fix the error of undefined on the product page (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ymaheshwari1 committed Nov 28, 2020
1 parent 7c17b00 commit b6cf09d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/molecules/m-product-gallery.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default {
selectThis = false
}
}
return selectThis || (image.id && image.id.color && String(image.id.color) === String(this.configuration.color.id))
return this.configuration.color ? selectThis || (image.id && image.id.color && String(image.id.color) === String(this.configuration.color.id)) : false
})
if (!variantImage) {
Expand Down

0 comments on commit b6cf09d

Please sign in to comment.