From ce29f0e5acb73cb00cddbec252131c7c862330a0 Mon Sep 17 00:00:00 2001 From: Hareet Dhillon Date: Fri, 10 Dec 2021 16:22:31 -0500 Subject: [PATCH] Change deleting custom event template request return type to boolean --- src/app/Shared/Services/Api.service.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/Shared/Services/Api.service.tsx b/src/app/Shared/Services/Api.service.tsx index 9c6e0ea04..298b280de 100644 --- a/src/app/Shared/Services/Api.service.tsx +++ b/src/app/Shared/Services/Api.service.tsx @@ -285,7 +285,7 @@ export class ApiService { ; } - deleteCustomEventTemplate(templateName: string): Observable { + deleteCustomEventTemplate(templateName: string): Observable { return this.sendRequest('v1', `templates/${encodeURIComponent(templateName)}`, { method: 'DELETE', body: null, @@ -295,8 +295,9 @@ export class ApiService { if (!response.ok) { throw response.statusText; } + return true; }), - catchError((): ObservableInput => of()), + catchError((): ObservableInput => of(false)), ); }