Child object appears as 'undefined', but an earlier level of the object shows the value

0

The this.props.usuario.user.guia field is as undefined , but when it is entered in the log the this.props.usuario.user object appears with value. This does not make 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);
    }
}

    
asked by anonymous 09.11.2018 / 01:42

0 answers