From ffa7c1f5bd7574bb5fb238793e66409507f7c9ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Thu, 3 Aug 2023 11:37:58 +0200 Subject: [PATCH] fix(core): Fix property existence checks on AugmentObject Fixes https://community.n8n.io/t/code-node-returns-full-item-object-on-node-all/28823 --- packages/workflow/src/AugmentObject.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/workflow/src/AugmentObject.ts b/packages/workflow/src/AugmentObject.ts index dd4e868f85bcbf..b681b08aad3009 100644 --- a/packages/workflow/src/AugmentObject.ts +++ b/packages/workflow/src/AugmentObject.ts @@ -134,8 +134,7 @@ export function augmentObject(data: T): T { }, has(target, key) { if (deletedProperties.indexOf(key) !== -1) return false; - const newKeys = Object.keys(newData); - return Reflect.has(newKeys.length ? newData : target, key); + return Reflect.has(newData, key) || Reflect.has(target, key); }, ownKeys(target) { const originalKeys = Reflect.ownKeys(target);