Skip to content

Commit a7ffbd6

Browse files
committed
Move hide() method to if statement
1 parent b30b855 commit a7ffbd6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,13 @@ define([
101101
show: function (record) {
102102
var img;
103103

104-
this.hide();
105-
106104
if (record._rowIndex === this.visibleRecord()) {
105+
this.hide();
106+
107107
return;
108108
}
109109

110+
this.hide();
110111
this.displayedRecord(record);
111112
this._selectRow(record.rowNumber || null);
112113
this.visibleRecord(record._rowIndex);

0 commit comments

Comments
 (0)