From e59d4df5eea556fe45b62c7fb73e948e3f0b7fc0 Mon Sep 17 00:00:00 2001 From: Rui Tome Date: Mon, 22 Apr 2024 18:41:51 +0100 Subject: [PATCH] [PM-7004] Remove try/catch from submit method in verify-recover-delete-org.component.ts --- .../verify-recover-delete-org.component.ts | 20 ++++++++----------- 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/apps/web/src/app/admin-console/organizations/manage/verify-recover-delete-org.component.ts b/apps/web/src/app/admin-console/organizations/manage/verify-recover-delete-org.component.ts index e1289ab34e..0cb0abc0ce 100644 --- a/apps/web/src/app/admin-console/organizations/manage/verify-recover-delete-org.component.ts +++ b/apps/web/src/app/admin-console/organizations/manage/verify-recover-delete-org.component.ts @@ -44,17 +44,13 @@ export class VerifyRecoverDeleteOrgComponent implements OnInit { } submit = async () => { - try { - const request = new OrganizationVerifyDeleteRecoverRequest(this.token); - await this.apiService.deleteUsingToken(this.orgId, request); - this.platformUtilsService.showToast( - "success", - this.i18nService.t("organizationDeleted"), - this.i18nService.t("organizationDeletedDesc"), - ); - await this.router.navigate(["/"]); - } catch (e) { - this.logService.error(e); - } + const request = new OrganizationVerifyDeleteRecoverRequest(this.token); + await this.apiService.deleteUsingToken(this.orgId, request); + this.platformUtilsService.showToast( + "success", + this.i18nService.t("organizationDeleted"), + this.i18nService.t("organizationDeletedDesc"), + ); + await this.router.navigate(["/"]); }; }