File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments