Skip to content

Commit c4d928f

Browse files
Chhandak.BaruaChhandak.Barua
authored andcommitted
ACP2E-3504: Product images not resized when added as configurable product
1 parent e3e820a commit c4d928f

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

app/code/Magento/ConfigurableProduct/view/adminhtml/layout/catalog_product_wizard.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0"?>
22
<!--
33
/**
4-
* Copyright © Magento, Inc. All rights reserved.
5-
* See COPYING.txt for license details.
4+
* Copyright 2011 Adobe
5+
* All Rights Reserved.
66
*/
77
-->
88
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_layout.xsd">

app/code/Magento/ConfigurableProduct/view/adminhtml/web/js/variations/steps/bulk.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -463,15 +463,14 @@ define([
463463
uppy.use(Uppy.Dashboard, options);
464464

465465
// Use 'self.options' to access component options
466-
if (self.options.isResizeEnabled) {
466+
if (self.options?.isResizeEnabled) {
467467
uppy.use(Uppy.Compressor, {
468468
maxWidth: self.options.maxWidth,
469469
maxHeight: self.options.maxHeight,
470470
quality: 0.92,
471471
beforeDraw() {
472-
if (!allowedResize) {
472+
if (!allowedResize)
473473
this.abort();
474-
}
475474
}
476475
});
477476
}

0 commit comments

Comments
 (0)