X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Fapp%2Fk8s%2Fk8scluster%2FK8sClusterComponent.ts;h=88a4fb69220e49ddf987b4dc4e95e496c12c5d98;hb=0a34dfa32165036b380ec6ac493469b34007df0a;hp=7ab75832f75d9f41b5140e1a72394a11eb585255;hpb=40cc37ef2bbc4aac5debc9dea0baeb6dbd87a2d7;p=osm%2FNG-UI.git diff --git a/src/app/k8s/k8scluster/K8sClusterComponent.ts b/src/app/k8s/k8scluster/K8sClusterComponent.ts index 7ab7583..88a4fb6 100644 --- a/src/app/k8s/k8scluster/K8sClusterComponent.ts +++ b/src/app/k8s/k8scluster/K8sClusterComponent.ts @@ -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; }); } - }