Skip to content

Commit a565ee0

Browse files
authored
Remove duplicated hide() method
1 parent e29914e commit a565ee0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

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

104+
this.hide();
105+
104106
if (record._rowIndex === this.visibleRecord()) {
105-
this.hide();
106-
107107
return;
108108
}
109-
110-
this.hide();
109+
111110
this.displayedRecord(record);
112111
this._selectRow(record.rowNumber || null);
113112
this.visibleRecord(record._rowIndex);

0 commit comments

Comments
 (0)