igniteui-angular 14.2.34 → 14.2.35

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.
@@ -78718,12 +78718,12 @@ class IgxTreeGridNormalizeRecordsPipe {
78718
78718
  const primaryKey = this.grid.primaryKey;
78719
78719
  // using flattened data because origin data may be hierarchical.
78720
78720
  const flatData = this.grid.flatData;
78721
- const res = flatData.map(rec => ({
78721
+ const res = flatData ? flatData.map(rec => ({
78722
78722
  rowID: this.grid.primaryKey ? rec[primaryKey] : rec,
78723
78723
  data: rec,
78724
78724
  level: 0,
78725
78725
  children: []
78726
- }));
78726
+ })) : [];
78727
78727
  return res;
78728
78728
  }
78729
78729
  }