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 55d5655 commit 8e6d873Copy full SHA for 8e6d873
projects/igniteui-angular/src/lib/grids/pivot-grid/pivot-header-row.component.ts
@@ -187,7 +187,7 @@ export class IgxPivotHeaderRowComponent extends IgxGridHeaderRowComponent implem
187
if (columnDimensions.length === 0) {
188
return 1;
189
}
190
- let totalDepth = columnDimensions.map(x => this.grid.data.length > 0 ? PivotUtil.getDimensionDepth(x) + 1 : 0).reduce((acc, val) => acc + val);
+ let totalDepth = columnDimensions.map(x => this.grid.data?.length > 0 ? PivotUtil.getDimensionDepth(x) + 1 : 0).reduce((acc, val) => acc + val);
191
if (this.grid.hasMultipleValues) {
192
totalDepth += 1;
193
0 commit comments