Skip to content

Commit 6a7fcfb

Browse files
MKirovaMayaKirova
authored andcommitted
chore(*): Add check in case record is not yet populated.
1 parent d478f6f commit 6a7fcfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/igniteui-angular/src/lib/grids/hierarchical-grid/hierarchical-grid.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ export class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirecti
833833
*/
834834
public isChildGridRecord(record: any): boolean {
835835
// Can be null when there is defined layout but no child data was found
836-
return record.childGridsData !== undefined;
836+
return record?.childGridsData !== undefined;
837837
}
838838

839839
/**

0 commit comments

Comments
 (0)