Skip to content

Commit a3db34f

Browse files
committed
fix(pivot): Fix issue with expand/collapse last level of more complex hierarchy
1 parent 3cff889 commit a3db34f

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-util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ export class PivotUtil {
320320
for(const prev of prevDims) {
321321
const dimData = PivotUtil.getDimensionLevel(prev, rec,
322322
{ aggregations: 'aggregations', records: 'records', children: 'children', level: 'level'});
323-
parentFields.push(rec[dimData.dimension.memberName]);
323+
parentFields.push(rec[prev.memberName] || rec[dimData.dimension.memberName]);
324324
}
325325
parentFields.push(value);
326326
return parentFields.join('_');

0 commit comments

Comments
 (0)