fix(Local File Trigger Node): Fix issue that causes a crash if the ignore field is empty (#4824) (#4825)

This commit is contained in:
Marcel 2022-12-06 09:57:07 +00:00 committed by GitHub
parent 75ad3d168c
commit c3114241fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: