Skip to content

Commit

Permalink
Updated suggested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vishal-7037 committed Jul 10, 2019
1 parent 58e3178 commit 29331c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/themes/default/pages/Product.vue
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,8 @@ export default {
this.product.configurable_options.forEach(configurableOption => {
const type = configurableOption.attribute_code
const filterVariants = configurableOption.values.map(({value_index, label}) => {
label = label ? label : this.options[type].find(config => config.id === value_index).label
let currentVariantLabel = this.options[type].find(config => config.id === value_index).label
label = label ? label : (currentVariantLabel !== null ? currentVariantLabel : null)
return {id: value_index, label, type}
})
filtersMap[type] = filterVariants
Expand Down

0 comments on commit 29331c3

Please sign in to comment.