fix(Telegram Trigger Node): Add guard to 'include' call on null or undefined (#6730)

This commit is contained in:
Michael Kret 2023-07-25 16:59:44 +03:00 committed by GitHub
parent 4cae091cfb
commit 533b0bac13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -182,7 +182,7 @@ export class TelegramTrigger implements INodeType {
let allowedUpdates = this.getNodeParameter('updates') as string[];
if (allowedUpdates.includes('*')) {
if ((allowedUpdates || []).includes('*')) {
allowedUpdates = [];
}