From bd125b6f72984a0c52b3cd0b4c21fceaf8ff279c Mon Sep 17 00:00:00 2001 From: Willem Dantuma Date: Thu, 29 Jul 2021 13:24:59 +0200 Subject: [PATCH] Fix check --- projects/common-map/src/fm-map/components/map/map.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 433c0f7..a5cb95e 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 @@ -108,7 +108,7 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit { this.overrideOverlayLayers = params["overrideOverlayLayers"] ? params["overrideOverlayLayers"] : false; } this.querySub = this.query$.pipe(skip(1), withLatestFrom(this.mapState$)).subscribe(([query,mapState]) =>{ - if(query.querystate) { + if(query && query.querystate) { let newQueryState = tassign(mapReducers.initialQueryState); console.debug(`Do Query`); let urlparts=[];