[angular-16-irish-montitor | CHANGED]: admin dashboard chech data first before params for stakeholder.
This commit is contained in:
parent
d61a70cc5a
commit
54a7ad165e
|
@ -38,6 +38,6 @@ export class AdminDashboardGuard {
|
|||
}
|
||||
|
||||
canActivateChild(childRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree {
|
||||
return this.check(state.url, childRoute.params.stakeholder);
|
||||
return this.check(state.url, childRoute.data?.stakeholder?childRoute.data.stakeholder:childRoute.params.stakeholder);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue