Skip to content

Commit 2ff5cad

Browse files
committed
Fix image order when 10+ images on dropdown configurable products
1 parent a047c76 commit 2ff5cad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/ConfigurableProduct/view/frontend/web/js/configurable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ define([
372372
*/
373373
_sortImages: function (images) {
374374
return _.sortBy(images, function (image) {
375-
return image.position;
375+
return parseInt(image.position, 10);
376376
});
377377
},
378378

0 commit comments

Comments
 (0)