We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e4eeb7 commit e58898bCopy full SHA for e58898b
app/code/Magento/Swatches/view/base/web/js/swatch-renderer.js
@@ -1248,10 +1248,9 @@ define([
1248
*/
1249
_setImageType: function (images) {
1250
var initial = this.options.mediaGalleryInitial[0].img;
1251
- var mediaGalleryInitial = this.options.mediaGalleryInitial;
1252
1253
- if (images[0].img === initial && (images.length === mediaGalleryInitial.length)) {
1254
- images = $.extend(true, [], mediaGalleryInitial);
+ if (images[0].img === initial && images.length === this.options.mediaGalleryInitial.length) {
+ images = $.extend(true, [], this.options.mediaGalleryInitial);
1255
} else {
1256
images.map(function (img) {
1257
if (!img.type) {
0 commit comments