File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/code/Magento/Swatches/view/frontend/web/js Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1223,7 +1223,7 @@ define([
1223
1223
}
1224
1224
1225
1225
imagesToUpdate = this . _setImageIndex ( imagesToUpdate ) ;
1226
- if ( gallery === undefined ) {
1226
+ if ( typeof gallery === undefined ) {
1227
1227
context . find ( this . options . mediaGallerySelector ) . on ( 'gallery:loaded' , function ( loadedGallery ) {
1228
1228
loadedGallery = context . find ( this . options . mediaGallerySelector ) . data ( 'gallery' ) ;
1229
1229
loadedGallery . updateData ( imagesToUpdate ) ;
@@ -1241,7 +1241,7 @@ define([
1241
1241
} ) ;
1242
1242
}
1243
1243
1244
- if ( gallery === undefined ) {
1244
+ if ( typeof gallery === undefined ) {
1245
1245
context . find ( this . options . mediaGallerySelector ) . on ( 'gallery:loaded' , function ( loadedGallery ) {
1246
1246
loadedGallery = context . find ( this . options . mediaGallerySelector ) . data ( 'gallery' ) ;
1247
1247
loadedGallery . first ( ) ;
You can’t perform that action at this time.
0 commit comments