fix(Slack Trigger Node): Handle undefined item in event channel extraction (#18676)

This commit is contained in:
Shireen Missi
2025-08-27 12:49:53 +01:00
committed by GitHub
parent 40c94e2336
commit ed090f0e66
2 changed files with 425 additions and 1 deletions

View File

@@ -352,7 +352,8 @@ export class SlackTrigger implements INodeType {
}
if (eventType !== 'team_join') {
eventChannel = req.body.event.channel ?? req.body.event.item.channel;
eventChannel =
req.body.event.channel ?? req.body.event.item?.channel ?? req.body.event.channel_id;
// Check for single channel
if (!watchWorkspace) {