Skip to content

Commit e2e6b3e

Browse files
author
joweecaquicla
committed
magento/adobe-stock-integration#1387: Uncaught TypeError: Cannot read property 'complete' of undefined appears in dev console if save Previewed image as a new View and open this View on another page - requested modifications
1 parent 61f5cbe commit e2e6b3e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/Ui/view/base/web/js/grid/columns/image-preview.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ define([
161161
},
162162

163163
/**
164-
* Update image data
164+
* Update image data when image preview is opened
165165
*/
166166
updateImageData: function () {
167167
var img = $(this.previewImageSelector + ' img');
@@ -184,9 +184,9 @@ define([
184184
},
185185

186186
/**
187-
* Update displayed record
187+
* Update opened image preview contents when the data provider is updated
188188
*
189-
* @param items
189+
* @param {Array} items
190190
*/
191191
updateDisplayedRecord: function (items) {
192192
if (!_.isNull(this.visibleRecord())) {

0 commit comments

Comments
 (0)