Skip to content

Commit

Permalink
Merge branch 'main' into rdil/refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
RDIL authored Jul 25, 2024
2 parents 481ea82 + ca8402e commit c988818
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,7 @@ export function findNamedChild(
let obj = variables

// if we have a global matching the exact name of the reference, this is probably what we want
// note: not sure why exactly but if we don't do this proto check,
// `handleEvent api > supports actions with constants` fails
if (Object.prototype.hasOwnProperty.call(reference)) {
if (Object.prototype.hasOwnProperty.call(obj, reference)) {
return obj[reference]
}

Expand Down
2 changes: 1 addition & 1 deletion tests/handleEvent.data.json
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@
"ContractStarted": {
"Condition": {
"$eq": [
"$ContractId",
"$.ContractId",
"abc123"
]
},
Expand Down

0 comments on commit c988818

Please sign in to comment.