Skip to content

Commit 09ff9b9

Browse files
dkamburovMKirova
andauthored
fix(igxPivotGrid): show expander only if there is a hierarchy in the columns (#14193)
Co-authored-by: MKirova <MKirova@DEV-MKIROVA>
1 parent 1032ce6 commit 09ff9b9

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
@@ -2047,7 +2047,7 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni
20472047
const newPath = path.join(separator);
20482048
let targetHierarchy = currentHierarchy.get(newPath);
20492049
if (!targetHierarchy) {
2050-
currentHierarchy.set(newPath, { value: newPath, expandable: true, children: new Map<string, any>(), dimension: this.columnDimensions[0] });
2050+
currentHierarchy.set(newPath, { value: newPath, expandable: !!this.columnDimensions[0].childLevel, children: new Map<string, any>(), dimension: this.columnDimensions[0] });
20512051
targetHierarchy = currentHierarchy.get(newPath);
20522052
}
20532053
currentHierarchy = targetHierarchy.children;

0 commit comments

Comments
 (0)