@ecomplus/storefront-components 1.0.0-beta.187 → 1.0.0-beta.189

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecomplus/storefront-components",
3
- "version": "1.0.0-beta.187",
3
+ "version": "1.0.0-beta.189",
4
4
  "description": "Vue components for E-Com Plus Storefront",
5
5
  "main": "dist/storefront-components.min.js",
6
6
  "scripts": {
@@ -124,6 +124,7 @@
124
124
  class="search-engine__option custom-control custom-checkbox"
125
125
  v-for="(opt, index) in options"
126
126
  :key="`${filter}-${index}`"
127
+ :data-opt="opt.key"
127
128
  >
128
129
  <input
129
130
  type="checkbox"
@@ -7,7 +7,8 @@ import {
7
7
 
8
8
  import {
9
9
  i18n,
10
- fullName as getFullName
10
+ fullName as getFullName,
11
+ randomObjectId
11
12
  } from '@ecomplus/utils'
12
13
 
13
14
  import AddressForm from './../AddressForm.vue'
@@ -52,7 +53,15 @@ export default {
52
53
  i19noNumber: () => i18n(i19noNumber),
53
54
 
54
55
  addresses () {
55
- return this.customer.addresses || []
56
+ if (this.customer.addresses) {
57
+ return this.customer.addresses.map((addr) => {
58
+ if (!addr._id) {
59
+ addr._id = randomObjectId()
60
+ }
61
+ return addr
62
+ })
63
+ }
64
+ return []
56
65
  },
57
66
 
58
67
  localAddress: {