Skip to content

Commit d645faa

Browse files
authored
fix(igxPivotGrid): Fix check to show expander only if there is a hierarchy in the columns. (#14049)
1 parent 281169f commit d645faa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/igniteui-angular/src/lib/grids/pivot-grid/pivot-grid.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2041,7 +2041,7 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni
20412041
const newPath = path.join(separator);
20422042
let targetHierarchy = currentHierarchy.get(newPath);
20432043
if (!targetHierarchy) {
2044-
currentHierarchy.set(newPath, { value: newPath, expandable: true, children: new Map<string, any>(), dimension: this.columnDimensions[0] });
2044+
currentHierarchy.set(newPath, { value: newPath, expandable: !!this.columnDimensions[0].childLevel, children: new Map<string, any>(), dimension: this.columnDimensions[0] });
20452045
targetHierarchy = currentHierarchy.get(newPath);
20462046
}
20472047
currentHierarchy = targetHierarchy.children;

0 commit comments

Comments
 (0)