Skip to content

Commit 07e803c

Browse files
fix(slack): remove update message incorrect canonical param (#1964)
* fix(slack): send message tool * add logging * add more logs * add more logs * fix canonical param
1 parent d50aefc commit 07e803c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/sim/blocks/blocks/slack.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ export const SlackBlock: BlockConfig<SlackResponse> = {
229229
id: 'updateText',
230230
title: 'New Message Text',
231231
type: 'long-input',
232-
canonicalParamId: 'text',
233232
placeholder: 'Enter new message text (supports Slack mrkdwn)',
234233
condition: {
235234
field: 'operation',
@@ -316,6 +315,7 @@ export const SlackBlock: BlockConfig<SlackResponse> = {
316315
operation,
317316
channel,
318317
manualChannel,
318+
text,
319319
title,
320320
content,
321321
limit,
@@ -359,10 +359,10 @@ export const SlackBlock: BlockConfig<SlackResponse> = {
359359
// Handle operation-specific params
360360
switch (operation) {
361361
case 'send': {
362-
if (!rest.text) {
362+
if (!text || text.trim() === '') {
363363
throw new Error('Message text is required for send operation')
364364
}
365-
baseParams.text = rest.text
365+
baseParams.text = text
366366
// Add thread_ts if provided
367367
if (threadTs) {
368368
baseParams.thread_ts = threadTs

0 commit comments

Comments
 (0)