mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 06:34:05 -08:00
fix(Telegram Trigger Node): Add guard to 'include' call on null or undefined (#6730)
This commit is contained in:
parent
4cae091cfb
commit
533b0bac13
|
@ -182,7 +182,7 @@ export class TelegramTrigger implements INodeType {
|
|||
|
||||
let allowedUpdates = this.getNodeParameter('updates') as string[];
|
||||
|
||||
if (allowedUpdates.includes('*')) {
|
||||
if ((allowedUpdates || []).includes('*')) {
|
||||
allowedUpdates = [];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue