Skip to content

Commit e58898b

Browse files
committed
Static test fixes
1 parent 4e4eeb7 commit e58898b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/code/Magento/Swatches/view/base/web/js/swatch-renderer.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,10 +1248,9 @@ define([
12481248
*/
12491249
_setImageType: function (images) {
12501250
var initial = this.options.mediaGalleryInitial[0].img;
1251-
var mediaGalleryInitial = this.options.mediaGalleryInitial;
12521251

1253-
if (images[0].img === initial && (images.length === mediaGalleryInitial.length)) {
1254-
images = $.extend(true, [], mediaGalleryInitial);
1252+
if (images[0].img === initial && images.length === this.options.mediaGalleryInitial.length) {
1253+
images = $.extend(true, [], this.options.mediaGalleryInitial);
12551254
} else {
12561255
images.map(function (img) {
12571256
if (!img.type) {

0 commit comments

Comments
 (0)