From 0694d4e467254d7a381f0e98395dc7358767165a Mon Sep 17 00:00:00 2001 From: Peter Bastiani Date: Thu, 1 Feb 2024 16:20:57 +0100 Subject: [PATCH] Aw5812Fix null exc --- .../src/fm/components/side-panel/side-panel.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/common/src/fm/components/side-panel/side-panel.component.ts b/projects/common/src/fm/components/side-panel/side-panel.component.ts index e8e27a7..e3b13ed 100644 --- a/projects/common/src/fm/components/side-panel/side-panel.component.ts +++ b/projects/common/src/fm/components/side-panel/side-panel.component.ts @@ -13,7 +13,7 @@ export class SidePanelComponent implements OnChanges { @Input() public collapsable: boolean; @Input() public resizeable = false; @Input() public left = false; - @Input() public extrawide = false; + @Input() public extrawide: boolean; @Output() onResize: EventEmitter = new EventEmitter(); @ViewChild("resizeGrip") elementView: ElementRef; public mobile = true; @@ -42,7 +42,7 @@ export class SidePanelComponent implements OnChanges { } ngAfterViewInit() { - this.parentHeight = this.element.nativeElement.offsetParent.clientHeight; + this.parentHeight = this.element.nativeElement.offsetParent?.clientHeight; this.setTop(); }