score:0

Accepted answer
if (this.props.accountid && this.props.companyinfo && this.props.companyinfo.companyid) {
  //do api call
}

Related Query

More Query from same tag