Some fixes
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good

This commit is contained in:
Willem Dantuma 2020-10-30 12:37:02 +01:00
parent 2656a67fca
commit 8d204ce1cd
2 changed files with 10 additions and 2 deletions

View File

@ -19,6 +19,14 @@ const routes = [
component: MapComponent component: MapComponent
} }
] ]
},
{
path: ':queryState', children: [
{
path: '',
component: MapComponent
}
]
} }
]; ];

View File

@ -141,7 +141,7 @@ export class AppComponent implements OnInit, OnDestroy {
this.store$.dispatch(new commonActions.InitUser()); this.store$.dispatch(new commonActions.InitUser());
} }
}); });
if(this.oauthService$.hasValidAccessToken) { if(this.oauthService$.hasValidAccessToken()) {
this.store$.dispatch(new commonActions.InitUser()); this.store$.dispatch(new commonActions.InitUser());
} else { } else {
if(this.oauthService$.getRefreshToken() !=null) { if(this.oauthService$.getRefreshToken() !=null) {