Error accessing child node in Firebase

Asked

Viewed 11 times

0

inserir a descrição da imagem aqui

Guys, I’m having problems to access the child node in Firebase, is returning me this error, I wonder what should be modified to run the app normally, above is my code I’ve tried to run.

It follows my structure in the bank that I want to access: inserir a descrição da imagem aqui

  • Face this must be because the state.cnpj is empty. It turns out that in the return you are set to the state.cnpj on the return of Promise, that runs asynchronously and when you use child() it is not yet defined. then().

  • Okay. Thank you.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.