Skip to content

Commit

Permalink
fix(functions): Serialize array of arrays. (#781)
Browse files Browse the repository at this point in the history
* fix(functions): Serialize array of arrays.

* Added changeset

* Update .changeset/little-buses-hug.md

---------

Co-authored-by: Robin Genz <[email protected]>
  • Loading branch information
Tobertet and robingenz authored Dec 22, 2024
1 parent ded83c9 commit 9bdd458
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/little-buses-hug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@capacitor-firebase/functions': patch
---

fix(android): serialize arrays in arrays correctly
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ private static JSArray createJSArrayFromArrayList(ArrayList arrayList) {
for (Object value : arrayList) {
if (value instanceof Map) {
value = createJSObjectFromMap((Map<String, Object>) value);
} else if (value instanceof ArrayList) {
value = createJSArrayFromArrayList((ArrayList) value);
}
array.put(value);
}
Expand Down

0 comments on commit 9bdd458

Please sign in to comment.