I've been following this tutorial on converting a firebase snapshot into an array for my ionic application. Here is the code I am using:
You can find the code here.
Here is my data structure in firebase:
https://i.sstatic.net/xcYOv.png
However, when I run my code, I encounter this error:
https://i.sstatic.net/5hvdk.png
Upon debugging, I noticed that the first item in the snapshot is stored in the array, but the next value is undefined. Oddly enough, printing the keys works just fine:
https://i.sstatic.net/BF5Zc.png
Any insights on what might be causing this issue?