Skip to content

Commit ee4464b

Browse files
committed
fix(hgrid): Resolves error when parent grid has <= 2 records #9917
1 parent c1fbfdc commit ee4464b

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
@@ -346,7 +346,7 @@ export class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirecti
346346
public get parentRowOutletDirective() {
347347
// Targeting parent outlet in order to prevent hiding when outlet
348348
// is present at a child grid and is attached to a row.
349-
return this.parent.rowOutletDirective;
349+
return this.parent ? this.parent.rowOutletDirective : this.rowOutletDirective;
350350
}
351351

352352
/**

0 commit comments

Comments
 (0)