diff --git a/apps/sim/blocks/blocks/slack.ts b/apps/sim/blocks/blocks/slack.ts index 461f9c6fdeb..c0ff5dadfcc 100644 --- a/apps/sim/blocks/blocks/slack.ts +++ b/apps/sim/blocks/blocks/slack.ts @@ -229,7 +229,6 @@ export const SlackBlock: BlockConfig = { id: 'updateText', title: 'New Message Text', type: 'long-input', - canonicalParamId: 'text', placeholder: 'Enter new message text (supports Slack mrkdwn)', condition: { field: 'operation', @@ -316,6 +315,7 @@ export const SlackBlock: BlockConfig = { operation, channel, manualChannel, + text, title, content, limit, @@ -359,10 +359,10 @@ export const SlackBlock: BlockConfig = { // Handle operation-specific params switch (operation) { case 'send': { - if (!rest.text) { + if (!text || text.trim() === '') { throw new Error('Message text is required for send operation') } - baseParams.text = rest.text + baseParams.text = text // Add thread_ts if provided if (threadTs) { baseParams.thread_ts = threadTs