Skip to content

Commit

Permalink
fix: ifAssociativeArray serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
dlenroc authored Jul 9, 2024
1 parent 2487fac commit 93f01ec
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/odc/src/odc/helpers/serialization/toSerializable.brs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,15 @@ function toSerializable(source as object) as object
if getInterface(source, "ifAssociativeArray") <> invalid
result = {}

for each item in source.items()
if source.ifAssociativeArray = invalid
items = source.ifAssociativeArray.items()
else if source.items = invalid
items = source.items()
else
items = []
end if

for each item in items
value = item.value

if getInterface(value, "ifSGNodeField") <> invalid
Expand Down

0 comments on commit 93f01ec

Please sign in to comment.