posva / vuexfire

Check
https://github.com/vuejs/vuefire
MIT License
558 stars 49 forks source link

Empty item inside array of objects #189

Closed Tails128 closed 6 years ago

Tails128 commented 6 years ago

Currently if on my firebase i have this structure:

{
   "items":{
      "item":{
         "sub-item":{
            "1":{

            },
            "2":{

            }
         }
      }
   }
}

The result for the item which ref is "items/item" is:


[
   null,
   {

   },
   {

   }
]

It should be:

[
   {

   },
   {

   }
]
posva commented 6 years ago

I would need a boiled down repro for this 🙂 You can also set it up using vuefire's jsfiddle: https://jsfiddle.net/posva/wtyop5jy/ it will probably be easier (vuexfire and vuefire share the same core) if you are using cloudstore, you can set it up with this example: https://github.com/vuejs/vuefire/blob/firestore/examples/index.html

you will have to use your own database

posva commented 6 years ago

Closing due to inactivity. Please open a new issue with a reference to this one if you can follow up with more information.