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(); }