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);