mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(Telegram Trigger Node): Add guard to 'include' call on null or undefined (#6730)
This commit is contained in:
@@ -182,7 +182,7 @@ export class TelegramTrigger implements INodeType {
|
||||
|
||||
let allowedUpdates = this.getNodeParameter('updates') as string[];
|
||||
|
||||
if (allowedUpdates.includes('*')) {
|
||||
if ((allowedUpdates || []).includes('*')) {
|
||||
allowedUpdates = [];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user