File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
app/code/Magento/ConfigurableProduct/view/frontend/web/js Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -139,9 +139,9 @@ define([
139
139
} ) ;
140
140
141
141
$ . each ( queryParams , $ . proxy ( function ( key , value ) {
142
- if ( this . options . spConfig . attributes [ key ] !== undefined
143
- && this . options . spConfig . attributes [ key ] . options . find ( function ( element ) {
144
- return element . id === value ;
142
+ if ( this . options . spConfig . attributes [ key ] !== undefined &&
143
+ this . options . spConfig . attributes [ key ] . options . find ( function ( element ) {
144
+ return element . id === value ;
145
145
} ) ) {
146
146
this . options . values [ key ] = value ;
147
147
}
@@ -161,9 +161,9 @@ define([
161
161
if ( element . value ) {
162
162
attributeId = element . id . replace ( / [ a - z ] * / , '' ) ;
163
163
164
- if ( this . options . spConfig . attributes [ attributeId ] !== undefined
165
- && this . options . spConfig . attributes [ attributeId ] . options . find ( function ( optionElement ) {
166
- return optionElement . id === element . value ;
164
+ if ( this . options . spConfig . attributes [ attributeId ] !== undefined &&
165
+ this . options . spConfig . attributes [ attributeId ] . options . find ( function ( optionElement ) {
166
+ return optionElement . id === element . value ;
167
167
} ) ) {
168
168
this . options . values [ attributeId ] = element . value ;
169
169
}
You can’t perform that action at this time.
0 commit comments