File tree Expand file tree Collapse file tree 5 files changed +19
-9
lines changed
app/code/Magento/Ui/view/base/web Expand file tree Collapse file tree 5 files changed +19
-9
lines changed Original file line number Diff line number Diff line change @@ -299,7 +299,7 @@ define([
299
299
* @returns {String }
300
300
*/
301
301
getLabel : function ( record ) {
302
- return record [ this . index ] ;
302
+ return record !== undefined ? record [ this . index ] : null ;
303
303
} ,
304
304
305
305
/**
Original file line number Diff line number Diff line change @@ -28,12 +28,18 @@ define([
28
28
'<!-- /ko -->' ,
29
29
rowTmpl :
30
30
'<!-- ko with: _editor -->' +
31
- '<!-- ko if: isActive($row()._rowIndex, true) -->' +
32
- '<!-- ko with: getRecord($row()._rowIndex, true) -->' +
33
- '<!-- ko template: rowTmpl --><!-- /ko -->' +
34
- '<!-- /ko -->' +
35
- '<!-- ko if: isSingleEditing && singleEditingButtons -->' +
36
- '<!-- ko template: rowButtonsTmpl --><!-- /ko -->' +
31
+ '<!-- ko if: typeof $row() !== "undefined" -->' +
32
+ '<!-- ko if: isActive($row()._rowIndex, true) -->' +
33
+ '<!-- ko if: typeof $row() !== "undefined" -->' +
34
+ '<!-- ko with: getRecord($row()._rowIndex, true) -->' +
35
+ '<!-- ko template: rowTmpl --><!-- /ko -->' +
36
+ '<!-- /ko -->' +
37
+ '<!-- /ko -->' +
38
+ '<!-- ko if: typeof $row() !== "undefined" -->' +
39
+ '<!-- ko if: isSingleEditing && singleEditingButtons -->' +
40
+ '<!-- ko template: rowButtonsTmpl --><!-- /ko -->' +
41
+ '<!-- /ko -->' +
42
+ '<!-- /ko -->' +
37
43
'<!-- /ko -->' +
38
44
'<!-- /ko -->' +
39
45
'<!-- /ko -->'
Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
-->
7
+ <!-- ko if: $row() -->
7
8
< a
8
9
class ="action-menu-item "
9
10
if ="$col.isSingle($row()._rowIndex) "
20
21
</ li >
21
22
</ ul >
22
23
</ div >
24
+ <!-- /ko -->
Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
-->
7
+ <!-- ko if: $row() -->
7
8
< label class ="data-grid-checkbox-cell-inner ">
8
9
< input class ="admin__control-checkbox " type ="checkbox " data-action ="select-row "
9
10
data-bind ="
15
16
} "/>
16
17
< label attr ="for: index + 'check' + $row()[$col.indexField] "> </ label >
17
18
</ label >
19
+ <!-- /ko -->
Original file line number Diff line number Diff line change 10
10
< tr each ="data: getVisible(), as: '$col' " render ="getHeader() "> </ tr >
11
11
</ thead >
12
12
< tbody >
13
- < tr class ="data-row " repeat ="foreach: rows, item: '$row' " css ="'_odd-row': $index % 2 ">
14
- < td outerfasteach ="data: getVisible(), as: '$col' "
13
+ < tr if =" rows " class ="data-row " repeat ="foreach: rows, item: '$row' " css ="'_odd-row': $index % 2 ">
14
+ < td if =" $row() " outerfasteach ="data: getVisible(), as: '$col' "
15
15
css ="getFieldClass($row()) " click ="getFieldHandler($row()) " template ="getBody() "> </ td >
16
16
</ tr >
17
17
< tr ifnot ="hasData() " class ="data-grid-tr-no-data ">
You can’t perform that action at this time.
0 commit comments