Skip to content

Commit

Permalink
Merge pull request #356 from georgejecook/fix/do-not-enforce-args-fla…
Browse files Browse the repository at this point in the history
…g-if-not-there

fix(core): do not assume all tasks have args field
  • Loading branch information
georgejecook authored Apr 26, 2023
2 parents ae7447b + 914b949 commit 00d3aec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/source/core/Tasks.bs
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,10 @@ namespace mc.tasks
fields = {}
end if

if fields.args = invalid
fields = { args: fields }
if fields.args = invalid and task.doesExist("args")
fields = {
args: fields
}
end if

fields._observedField = fieldName
Expand Down

0 comments on commit 00d3aec

Please sign in to comment.