File tree Expand file tree Collapse file tree 3 files changed +15
-9
lines changed
app/code/Magento/Checkout/view/frontend/web/js/view
shipping-address/address-renderer
shipping-information/address-renderer Expand file tree Collapse file tree 3 files changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -255,9 +255,11 @@ function (
255
255
return attribute . label ;
256
256
}
257
257
258
- resultAttribute = _ . findWhere ( this . source . get ( 'customAttributes' ) [ attribute [ 'attribute_code' ] ] , {
259
- value : attribute . value
260
- } ) ;
258
+ if ( typeof this . source . get ( 'customAttributes' ) !== 'undefined' ) {
259
+ resultAttribute = _ . findWhere ( this . source . get ( 'customAttributes' ) [ attribute [ 'attribute_code' ] ] , {
260
+ value : attribute . value
261
+ } ) ;
262
+ }
261
263
262
264
return resultAttribute && resultAttribute . label || attribute . value ;
263
265
}
Original file line number Diff line number Diff line change @@ -65,9 +65,11 @@ define([
65
65
return attribute . label ;
66
66
}
67
67
68
- resultAttribute = _ . findWhere ( this . source . get ( 'customAttributes' ) [ attribute [ 'attribute_code' ] ] , {
69
- value : attribute . value
70
- } ) ;
68
+ if ( typeof this . source . get ( 'customAttributes' ) !== 'undefined' ) {
69
+ resultAttribute = _ . findWhere ( this . source . get ( 'customAttributes' ) [ attribute [ 'attribute_code' ] ] , {
70
+ value : attribute . value
71
+ } ) ;
72
+ }
71
73
72
74
return resultAttribute && resultAttribute . label || attribute . value ;
73
75
} ,
Original file line number Diff line number Diff line change @@ -42,9 +42,11 @@ define([
42
42
return attribute . label ;
43
43
}
44
44
45
- resultAttribute = _ . findWhere ( this . source . get ( 'customAttributes' ) [ attribute [ 'attribute_code' ] ] , {
46
- value : attribute . value
47
- } ) ;
45
+ if ( typeof this . source . get ( 'customAttributes' ) !== 'undefined' ) {
46
+ resultAttribute = _ . findWhere ( this . source . get ( 'customAttributes' ) [ attribute [ 'attribute_code' ] ] , {
47
+ value : attribute . value
48
+ } ) ;
49
+ }
48
50
49
51
return resultAttribute && resultAttribute . label || attribute . value ;
50
52
}
You can’t perform that action at this time.
0 commit comments