Fix Bug 2121: NG-UI uses unmaintained Chokidar version
[osm/NG-UI.git] / src / app / k8s / k8scluster / K8sClusterComponent.ts
index 7ab7583..88a4fb6 100644 (file)
@@ -180,12 +180,15 @@ export class K8sClusterComponent implements OnInit, OnDestroy {
 
   /** Compose new K8s Cluster Accounts @public */
   public addK8sCluster(): void {
+    // eslint-disable-next-line security/detect-non-literal-fs-filename
     const modalRef: NgbModalRef = this.modalService.open(K8sAddClusterComponent, { backdrop: 'static' });
     modalRef.result.then((result: MODALCLOSERESPONSEDATA) => {
       if (result) {
         this.sharedService.callData();
       }
-    }).catch();
+    }).catch((): void => {
+      // Catch Navigation Error
+  });
   }
 
   /**
@@ -232,5 +235,4 @@ export class K8sClusterComponent implements OnInit, OnDestroy {
       this.isLoadingResults = false;
     });
   }
-
 }