X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Fapp%2Fwim-accounts%2Fwim-account-details%2FWIMAccountDetailsComponent.ts;h=927e54e8f2d4fce7a0399dc7aa0f594568dc7373;hb=refs%2Fchanges%2F73%2F13273%2F3;hp=b1d16f7d7e45751f6b135cb37d30f31d06d560a7;hpb=40cc37ef2bbc4aac5debc9dea0baeb6dbd87a2d7;p=osm%2FNG-UI.git diff --git a/src/app/wim-accounts/wim-account-details/WIMAccountDetailsComponent.ts b/src/app/wim-accounts/wim-account-details/WIMAccountDetailsComponent.ts index b1d16f7..927e54e 100644 --- a/src/app/wim-accounts/wim-account-details/WIMAccountDetailsComponent.ts +++ b/src/app/wim-accounts/wim-account-details/WIMAccountDetailsComponent.ts @@ -195,12 +195,15 @@ export class WIMAccountDetailsComponent implements OnInit, OnDestroy { /** Compose new WIM Accounts @public */ public composeWIM(): void { + // eslint-disable-next-line security/detect-non-literal-fs-filename const modalRef: NgbModalRef = this.modalService.open(NewWIMAccountComponent, { backdrop: 'static' }); modalRef.result.then((result: MODALCLOSERESPONSEDATA) => { if (result) { this.sharedService.callData(); } - }).catch(); + }).catch((): void => { + // Catch Navigation Error + }); } /** Generate generateWIMData object from loop and return for the datasource @public */ @@ -237,7 +240,9 @@ export class WIMAccountDetailsComponent implements OnInit, OnDestroy { } this.dataSource.load(this.wimData).then((data: {}) => { this.isLoadingResults = false; - }).catch(); + }).catch((): void => { + // Catch Navigation Error + }); }, (error: ERRORDATA) => { this.restService.handleError(error, 'get'); this.isLoadingResults = false;