Why do I can't get a property of an object?

console.log(this.props.products[0])

console.log(this.props.products[0].category)

Never mind) It’s all because of async code (api requests).