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) =>