Firestore not returning maps correctly in android #496
Replies: 1 comment 2 replies
-
Thank you for your request. This seems like a bug. Please create a bug report: https://github.com/capawesome-team/capacitor-firebase/issues/new |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi I am using the capacitor firestore plugin and it works perfectly on iOS and the web, but on android it returns map objects with an "=" instead of a ":". when this happens the front end reads it as a string and can not iterate it on the frontend. How can I get past this?
This is what the console logs for the variable format:
'[{amount=5, name=Eggs, icon=}, {amount=2 slices, icon=, name=Cheese}, {amount=To Taste, icon=, name=Salt}, {amount=To Taste, name=Pepper , icon=}]'
This is the error:
Error: Cannot find a differ supporting object '[{amount=5, name=Eggs, icon=}, {amount=2 slices, icon=, name=Cheese}, {amount=To Taste, icon=, name=Salt}, {amount=To Taste, name=Pepper , icon=}]' of type 'string'. NgFor only supports binding to Iterables such as Arrays.
Beta Was this translation helpful? Give feedback.
All reactions