Angular upgrade
[osm/NG-UI.git] / src / app / roles / roles-details / RolesDetailsComponent.ts
index 89affae..473a0c6 100644 (file)
@@ -29,8 +29,7 @@ import { RestService } from 'RestService';
 import { RolesActionComponent } from 'RolesAction';
 import { RoleData, RoleDetails } from 'RolesModel';
 import { Subscription } from 'rxjs';
-import { SharedService } from 'SharedService';
-import { isNullOrUndefined } from 'util';
+import { SharedService, isNullOrUndefined } from 'SharedService';
 
 /**
  * Creating component
@@ -159,7 +158,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 +189,4 @@ export class RolesDetailsComponent implements OnInit {
   public ngOnDestroy(): void {
     this.generateDataSub.unsubscribe();
   }
-
 }