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 65714d4 commit 4e4eeb7Copy full SHA for 4e4eeb7
app/code/Magento/Swatches/view/base/web/js/swatch-renderer.js
@@ -1248,9 +1248,10 @@ define([
1248
*/
1249
_setImageType: function (images) {
1250
var initial = this.options.mediaGalleryInitial[0].img;
1251
+ var mediaGalleryInitial = this.options.mediaGalleryInitial;
1252
- if (images[0].img === initial) {
1253
- images = $.extend(true, [], this.options.mediaGalleryInitial);
+ if (images[0].img === initial && (images.length === mediaGalleryInitial.length)) {
1254
+ images = $.extend(true, [], mediaGalleryInitial);
1255
} else {
1256
images.map(function (img) {
1257
if (!img.type) {
0 commit comments