Skip to content

Commit 4742670

Browse files
committed
fix(pivot-grid): add check to not change dataType to undefined
1 parent 8b2455d commit 4742670

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
@@ -511,7 +511,7 @@ export class PivotUtil {
511511
public static updateColumnTypeByAggregator(columns: any[], value: IPivotValue, isSingleValue: boolean): void {
512512
const targetColumnType = PivotUtil.getColumnDataTypeForValue(value);
513513
columns.forEach(column => {
514-
if (column.field?.includes(value.member) || isSingleValue) {
514+
if ((column.field?.includes(value.member) || isSingleValue) && targetColumnType !== undefined) {
515515
column.dataType = targetColumnType;
516516
}
517517
})

0 commit comments

Comments
 (0)