From c3114241fdd399555666d2f5890815b6196ce1bf Mon Sep 17 00:00:00 2001 From: Marcel <13757952+marzn@users.noreply.github.com> Date: Tue, 6 Dec 2022 09:57:07 +0000 Subject: [PATCH] fix(Local File Trigger Node): Fix issue that causes a crash if the ignore field is empty (#4824) (#4825) --- .../nodes-base/nodes/LocalFileTrigger/LocalFileTrigger.node.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nodes-base/nodes/LocalFileTrigger/LocalFileTrigger.node.ts b/packages/nodes-base/nodes/LocalFileTrigger/LocalFileTrigger.node.ts index 893535ed8d..7dcf7625d7 100644 --- a/packages/nodes-base/nodes/LocalFileTrigger/LocalFileTrigger.node.ts +++ b/packages/nodes-base/nodes/LocalFileTrigger/LocalFileTrigger.node.ts @@ -182,7 +182,7 @@ export class LocalFileTrigger implements INodeType { } const watcher = watch(path, { - ignored: options.ignored, + ignored: options.ignored === '' ? undefined : options.ignored, persistent: true, ignoreInitial: true, followSymlinks: