Skip to content
Snippets Groups Projects
Commit d26bfd84 authored by Alberto's avatar Alberto
Browse files

Ag-451 [fixed] Fixed bug when row grouping generated a column without definition

parent b91158f8
Branches
Tags
No related merge requests found
......@@ -255,7 +255,8 @@ export class GridSerializer {
let columnIndex :number = 0;
displayedGroups.forEach((it:ColumnGroupChild)=>{
let casted:ColumnGroup = it as ColumnGroup;
gridRowIterator.onColumn(casted.getDefinition().headerName, columnIndex ++, casted.getChildren().length - 1);
let definition = casted.getDefinition();
gridRowIterator.onColumn(definition != null ? definition.headerName : '', columnIndex ++, casted.getChildren().length - 1);
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment