We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1298766 commit 41c95a2Copy full SHA for 41c95a2
app/code/Magento/Ui/view/base/web/js/grid/columns/image-preview.js
@@ -84,10 +84,12 @@ define([
84
* @param {Object} record
85
*/
86
prev: function (record) {
87
+ var recordToShow;
88
+
89
if (record._rowIndex === 0) {
90
return;
91
}
- var recordToShow = this.getRecord(record._rowIndex - 1);
92
+ recordToShow = this.getRecord(record._rowIndex - 1);
93
94
recordToShow.rowNumber = record.firstInRow ? record.rowNumber - 1 : record.rowNumber;
95
this.show(recordToShow);
0 commit comments