0
The field this.props.usuario.user.guia
is as undefined
, but when I log the object this.props.usuario.user
appears with value. It makes no sense to me.
Log code:
if (!this.props.usuario.logout) {
if (prevProps.usuario.user !== this.props.usuario.user) {
console.tron.log(this.props.usuario);
console.tron.log(this.props.usuario.user);
console.tron.log(this.props.usuario.user.guia);
}
}
Why doesn’t it make sense? A child object can be empty, impossible it would be for the object to be empty and have a child object with value....!
– Pedro Gaspar
Good morning! The image is not quite clear what it matches.. The second debug item refers to what? You can show the console output?
– Ana Teixeira
Good morning! It’s really hard to decipher the above code, try to put only the console.log() of the working line and the other line of the error commented on the right side!! ;)
– dsandrade
Following people, when I put in my log the object this.props.user.user it shows me those items of the image(user, tourist, name...) with value, but when I try to use this.props.user.user.tab, for example, it presents me Undefined, q in the log, from the previous line, he displayed value
– Petterson Miler
that Undefined line of the log image is represented by the console.tron.log(this.props.user.user.tab) command. The line with value is represented by the console.tron.log(this.props.user.user);
– Petterson Miler
– Fernando Matos