From 8d204ce1cdf97f590f0f1526978c37e6510bbfd7 Mon Sep 17 00:00:00 2001 From: Willem Dantuma Date: Fri, 30 Oct 2020 12:37:02 +0100 Subject: [PATCH] Some fixes --- .../common-map/src/fm-map/common-map-routing.module.ts | 10 +++++++++- projects/common/src/fm/components/app/app.component.ts | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/projects/common-map/src/fm-map/common-map-routing.module.ts b/projects/common-map/src/fm-map/common-map-routing.module.ts index 5f744a8..f92d534 100644 --- a/projects/common-map/src/fm-map/common-map-routing.module.ts +++ b/projects/common-map/src/fm-map/common-map-routing.module.ts @@ -19,7 +19,15 @@ const routes = [ component: MapComponent } ] - } + }, + { + path: ':queryState', children: [ + { + path: '', + component: MapComponent + } + ] + } ]; @NgModule({ diff --git a/projects/common/src/fm/components/app/app.component.ts b/projects/common/src/fm/components/app/app.component.ts index 6d27f74..a8894c0 100644 --- a/projects/common/src/fm/components/app/app.component.ts +++ b/projects/common/src/fm/components/app/app.component.ts @@ -141,7 +141,7 @@ export class AppComponent implements OnInit, OnDestroy { this.store$.dispatch(new commonActions.InitUser()); } }); - if(this.oauthService$.hasValidAccessToken) { + if(this.oauthService$.hasValidAccessToken()) { this.store$.dispatch(new commonActions.InitUser()); } else { if(this.oauthService$.getRefreshToken() !=null) {