File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
projects/igniteui-angular/src/lib/grids/pivot-grid Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1043,7 +1043,7 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni
1043
1043
if ( this . getDimensionType ( dimension ) === PivotDimensionType . Row ) {
1044
1044
const relatedDims = PivotUtil . flatten ( [ dimension ] ) . map ( x => x . memberName ) ;
1045
1045
const content = this . rowDimensionContentCollection . filter ( x => relatedDims . indexOf ( x . dimension . memberName ) !== - 1 ) ;
1046
- const headers = flatten ( content . map ( x => x . headerGroups . toArray ( ) ) ) . map ( x => x . header . refInstance ) ;
1046
+ const headers = content . map ( x => x . headerGroups . toArray ( ) ) . flat ( ) . map ( x => x . header && x . header . refInstance ) ;
1047
1047
const autoWidth = this . getLargesContentWidth ( headers ) ;
1048
1048
dimension . width = autoWidth ;
1049
1049
this . pipeTrigger ++ ;
Original file line number Diff line number Diff line change 15
15
" node_modules/@types"
16
16
],
17
17
"lib" : [
18
- " es2017 " ,
18
+ " es2019 " ,
19
19
" dom"
20
20
],
21
21
"paths" : {
You can’t perform that action at this time.
0 commit comments