From fd28af2f6c30d54e413f0bc999f1a7807e856187 Mon Sep 17 00:00:00 2001 From: Willem Dantuma Date: Mon, 17 Feb 2020 10:23:17 +0100 Subject: [PATCH] Fix lost styling after navigation --- 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 9b51607..6928321 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 @@ -123,7 +123,6 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit { } ngOnInit() { - this.store.dispatch(new mapActions.Init()); this.selectedFeatures$.next({x:0,y:0,features:[]}); this.mapState$ = this.store.select(mapReducers.selectGetMapState); this.parentCode$ = this.store.select(mapReducers.selectGetParentCode); @@ -183,6 +182,7 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit { private lastQueryState: string = this.serializeService.serialize(mapReducers.initialQueryState); private lastMapState: string = ""; ngAfterViewInit() { + this.store.dispatch(new mapActions.Init()); this.paramSub = this.route.paramMap.subscribe((params: ParamMap) => { //console.log("Param sub"); var newMapState: IMapState = null;