From d5b366325ebcbdf28de999f5fd392cff6b52e1cf Mon Sep 17 00:00:00 2001 From: jcoitino Date: Mon, 30 Mar 2020 09:51:16 -0300 Subject: [PATCH] fix(grid): Avoid exeption on overlay opened #7015 --- projects/igniteui-angular/src/lib/grids/grid-base.directive.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/igniteui-angular/src/lib/grids/grid-base.directive.ts b/projects/igniteui-angular/src/lib/grids/grid-base.directive.ts index 3d090ae9a56..a092cb95288 100644 --- a/projects/igniteui-angular/src/lib/grids/grid-base.directive.ts +++ b/projects/igniteui-angular/src/lib/grids/grid-base.directive.ts @@ -2796,7 +2796,7 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements return; } - if (this.overlayService.getOverlayById(event.id).settings.outlet === this.outletDirective && + if (this.overlayService.getOverlayById(event.id)?.settings?.outlet === this.outletDirective && this.overlayIDs.indexOf(event.id) < 0) { this.overlayIDs.push(event.id); }