Skip to content

Commit

Permalink
Convert the object to an array (#508)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobWez98 authored Jun 4, 2024
1 parent 8def2f2 commit 3accb28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/js/components/Product/AddToCart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export default {
let values = {}
Object.entries(this.product['super_' + superAttributeCode]).forEach(([key, val]) => {
let swatch = swatchOptions.find((swatch) => swatch.value === val)
let swatch = Object.values(swatchOptions).find((swatch) => swatch.value === val)
if (swatch) {
values[val] = swatch
}
Expand Down

0 comments on commit 3accb28

Please sign in to comment.