mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-26 20:02:26 -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[];
|
let allowedUpdates = this.getNodeParameter('updates') as string[];
|
||||||
|
|
||||||
if (allowedUpdates.includes('*')) {
|
if ((allowedUpdates || []).includes('*')) {
|
||||||
allowedUpdates = [];
|
allowedUpdates = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue