From fc839e99bb5b4c2260827f8b5156c1286ae59a46 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Tue, 14 Nov 2023 09:57:48 +0100 Subject: [PATCH] fix(ui): api delete request with empty params --- frontend/app/api_client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/api_client.ts b/frontend/app/api_client.ts index 4f1822c16..99daddc92 100644 --- a/frontend/app/api_client.ts +++ b/frontend/app/api_client.ts @@ -127,7 +127,7 @@ export default class APIClient { (this.init.headers as Headers).set('Authorization', `Bearer ${jwt}`); } - const init = this.getInit(method, options.clean ? clean(params) : params); + const init = this.getInit(method, options.clean && params ? clean(params) : params); if (params !== undefined) {