Skip to content

Commit

Permalink
lint issues fixed
Browse files Browse the repository at this point in the history
Signed-off-by: AadeshNichite <anichite@progress.com>
  • Loading branch information
AadeshNichite committed Sep 1, 2023
1 parent e6bc7ae commit acd578d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const routes: Routes = [
{
path: 'jobs',
component: JobsListComponent,
canActivate : [MfeSessionService],
canActivate : [MfeSessionService]
},
{
path: 'nodes',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { ActivatedRouteSnapshot, CanActivate, RouterStateSnapshot } from '@angul
export class MfeSessionService implements CanActivate {
canActivate(_route: ActivatedRouteSnapshot, state: RouterStateSnapshot): boolean {
let map_url = localStorage.getItem('mfe_url_mapping');
let flag : boolean = true;
let flag = true;

map_url = JSON.parse(map_url);
if(map_url && map_url[state.url]){

if (map_url && map_url[state.url]) {
window.location.href = map_url[state.url];
flag = false;
}
Expand Down

0 comments on commit acd578d

Please sign in to comment.