@@ -303,8 +303,8 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni
303303 ref . instance . header = parent != null ? key . split ( parent . header + '-' ) [ 1 ] : key ;
304304 ref . instance . field = key ;
305305 ref . instance . parent = parent ;
306- ref . instance . dataType = this . pivotConfiguration . values [ 0 ] . dataType || this . resolveDataTypes ( data [ 0 ] [ key ] ) ;
307- ref . instance . formatter = this . pivotConfiguration . values [ 0 ] . formatter ;
306+ ref . instance . dataType = this . pivotConfiguration . values [ 0 ] ? .dataType || this . resolveDataTypes ( data [ 0 ] [ key ] ) ;
307+ ref . instance . formatter = this . pivotConfiguration . values [ 0 ] ? .formatter ;
308308 ref . changeDetectorRef . detectChanges ( ) ;
309309 columns . push ( ref . instance ) ;
310310 if ( this . hasMultipleValues ) {
@@ -327,8 +327,8 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni
327327 refSibling . instance . field = key ;
328328 refSibling . instance . parent = parent ;
329329 refSibling . instance . hidden = true ;
330- refSibling . instance . dataType = this . pivotConfiguration . values [ 0 ] . dataType || this . resolveDataTypes ( data [ 0 ] [ key ] ) ;
331- refSibling . instance . formatter = this . pivotConfiguration . values [ 0 ] . formatter ;
330+ refSibling . instance . dataType = this . pivotConfiguration . values [ 0 ] ? .dataType || this . resolveDataTypes ( data [ 0 ] [ key ] ) ;
331+ refSibling . instance . formatter = this . pivotConfiguration . values [ 0 ] ? .formatter ;
332332 columns . push ( refSibling . instance ) ;
333333 }
334334 const children = this . generateColumnHierarchy ( value . children , data , ref . instance ) ;
0 commit comments