Cannot read properties of undefined Error

  • Goal: I'm trying to pull values from Firestore and transform them into a table component, but when I try to access them it returns undefined error even though I see that the value is coming from the api.

  • Steps: Neither dot nor bracket notation works, both return the same error. I works successfully if I remove the nested key I'm trying to access.

  • Details:

  • Screenshots:


Hi @Nicole_Reiter,

I can't see the full structure of your data, but it looks like you need to add Unlock to your path.

obj.Unlock = row.charges.startRide.Unlock.baseValue.amount
2 Likes