File tree Expand file tree Collapse file tree 3 files changed +12
-0
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 +12
-0
lines changed Original file line number Diff line number Diff line change @@ -283,6 +283,8 @@ function (
283
283
label = _ . map ( attribute . value , function ( value ) {
284
284
return this . getCustomAttributeOptionLabel ( attribute [ 'attribute_code' ] , value ) || value ;
285
285
} , this ) . join ( ', ' ) ;
286
+ } else if ( typeof attribute . value === 'object' ) {
287
+ label = _ . map ( Object . values ( attribute . value ) ) . join ( ', ' ) ;
286
288
} else {
287
289
label = this . getCustomAttributeOptionLabel ( attribute [ 'attribute_code' ] , attribute . value ) ;
288
290
}
@@ -310,6 +312,8 @@ function (
310
312
if ( option ) {
311
313
label = option . label ;
312
314
}
315
+ } else if ( value . file !== null ) {
316
+ label = value . file ;
313
317
}
314
318
315
319
return label ;
Original file line number Diff line number Diff line change @@ -69,6 +69,8 @@ define([
69
69
label = _ . map ( attribute . value , function ( value ) {
70
70
return this . getCustomAttributeOptionLabel ( attribute [ 'attribute_code' ] , value ) || value ;
71
71
} , this ) . join ( ', ' ) ;
72
+ } else if ( typeof attribute . value === 'object' ) {
73
+ label = _ . map ( Object . values ( attribute . value ) ) . join ( ', ' ) ;
72
74
} else {
73
75
label = this . getCustomAttributeOptionLabel ( attribute [ 'attribute_code' ] , attribute . value ) ;
74
76
}
@@ -96,6 +98,8 @@ define([
96
98
if ( option ) {
97
99
label = option . label ;
98
100
}
101
+ } else if ( value . file !== null ) {
102
+ label = value . file ;
99
103
}
100
104
101
105
return label ;
Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ define([
46
46
label = _ . map ( attribute . value , function ( value ) {
47
47
return this . getCustomAttributeOptionLabel ( attribute [ 'attribute_code' ] , value ) || value ;
48
48
} , this ) . join ( ', ' ) ;
49
+ } else if ( typeof attribute . value === 'object' ) {
50
+ label = _ . map ( Object . values ( attribute . value ) ) . join ( ', ' ) ;
49
51
} else {
50
52
label = this . getCustomAttributeOptionLabel ( attribute [ 'attribute_code' ] , attribute . value ) ;
51
53
}
@@ -73,6 +75,8 @@ define([
73
75
if ( option ) {
74
76
label = option . label ;
75
77
}
78
+ } else if ( value . file !== null ) {
79
+ label = value . file ;
76
80
}
77
81
78
82
return label ;
You can’t perform that action at this time.
0 commit comments