mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(Slack Trigger Node): Handle undefined item in event channel extraction (#18676)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user