Skip to content

Commit

Permalink
fix(core): Fix property existence checks on AugmentObject
Browse files Browse the repository at this point in the history
  • Loading branch information
netroy committed Aug 3, 2023
1 parent e4f0418 commit ffa7c1f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/workflow/src/AugmentObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,7 @@ export function augmentObject<T extends object>(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);
Expand Down

0 comments on commit ffa7c1f

Please sign in to comment.