From f9f13e7fe30d9b9b29b6188e986a48cbb2aa7c62 Mon Sep 17 00:00:00 2001 From: Gleidson Daniel Silva Date: Thu, 8 Sep 2022 17:58:50 -0300 Subject: [PATCH] [FIX] Remove the tmid parameter when it is empty (#4500) * add custom fields after register * remove tmid when it is null * wip * wip * wip --- app/lib/services/restApi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/services/restApi.ts b/app/lib/services/restApi.ts index c58d7d3b8..045318059 100644 --- a/app/lib/services/restApi.ts +++ b/app/lib/services/restApi.ts @@ -688,7 +688,7 @@ export const runSlashCommand = (command: string, roomId: string, params: string, roomId, params, triggerId, - tmid + ...(tmid && { tmid }) }); export const getCommandPreview = (command: string, roomId: string, params: string) =>