@syncfusion/ej2-treegrid 23.2.6 → 23.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7091,11 +7091,12 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
7091
7091
  TreeGrid.prototype.treeColumnRowTemplate = function () {
7092
7092
  var rows = this.getContentTable().rows;
7093
7093
  rows = [].slice.call(rows);
7094
+ var rowsObject = this.grid.getRowsObject();
7094
7095
  for (var i = 0; i < rows.length; i++) {
7095
7096
  var rcell = this.grid.getContentTable().rows[parseInt(i.toString(), 10)]
7096
7097
  .cells[this.treeColumnIndex];
7097
7098
  var row = rows[parseInt(i.toString(), 10)];
7098
- var rowData = this.grid.getRowsObject()[parseInt(i.toString(), 10)].data;
7099
+ var rowData = rowsObject.length != 0 ? rowsObject[parseInt(i.toString(), 10)].data : new Object();
7099
7100
  var arg = { data: rowData, row: row, cell: rcell, column: this.getColumns()[this.treeColumnIndex] };
7100
7101
  this.renderModule.cellRender(arg);
7101
7102
  }