X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Fapp%2Froles%2Froles-details%2FRolesDetailsComponent.ts;h=9c2e3e38a265061d4069900faa8c31e29c939dfd;hb=0a34dfa32165036b380ec6ac493469b34007df0a;hp=89affae18c404788c029ffae626cd61587f24caa;hpb=40cc37ef2bbc4aac5debc9dea0baeb6dbd87a2d7;p=osm%2FNG-UI.git diff --git a/src/app/roles/roles-details/RolesDetailsComponent.ts b/src/app/roles/roles-details/RolesDetailsComponent.ts index 89affae..9c2e3e3 100644 --- a/src/app/roles/roles-details/RolesDetailsComponent.ts +++ b/src/app/roles/roles-details/RolesDetailsComponent.ts @@ -18,6 +18,7 @@ /** * @file Roles Deatils component. */ +import { isNullOrUndefined } from 'util'; import { Component, Injector, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { TranslateService } from '@ngx-translate/core'; @@ -30,7 +31,6 @@ import { RolesActionComponent } from 'RolesAction'; import { RoleData, RoleDetails } from 'RolesModel'; import { Subscription } from 'rxjs'; import { SharedService } from 'SharedService'; -import { isNullOrUndefined } from 'util'; /** * Creating component @@ -159,7 +159,9 @@ export class RolesDetailsComponent implements OnInit { }); this.dataSource.load(this.roleData).then((data: boolean) => { this.isLoadingResults = false; - }).catch(); + }).catch((): void => { + // Catch Navigation Error + }); }, (error: ERRORDATA) => { this.restService.handleError(error, 'get'); this.isLoadingResults = false; @@ -188,5 +190,4 @@ export class RolesDetailsComponent implements OnInit { public ngOnDestroy(): void { this.generateDataSub.unsubscribe(); } - }