From 2606de5f0aec94564d6a0c61e62ca28b5cb4f25e Mon Sep 17 00:00:00 2001 From: Willem Dantuma Date: Sat, 30 Jan 2021 09:56:56 +0100 Subject: [PATCH] Fix side panel display logic --- .../src/fm-map/components/map/map.component.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/projects/common-map/src/fm-map/components/map/map.component.ts b/projects/common-map/src/fm-map/components/map/map.component.ts index 62b3f81..1bac6f0 100644 --- a/projects/common-map/src/fm-map/components/map/map.component.ts +++ b/projects/common-map/src/fm-map/components/map/map.component.ts @@ -240,9 +240,12 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit { ngAfterViewInit() { console.debug("View init"); - if(this.route.children.length == 0) { - this.noContent=true; - } + this.noContent=true; + this.route.children.forEach((entry) => { + if(entry.outlet=="") { + this.noContent=false; + } + }); this.initCustomStyles();