I'm pulling in data from an API and trying to display it on my bootstrap table. It displays but I'm getting some errors. The first issue is in regard to 'data' being required.
The second issue seems to be the data hasn't loaded in time but I've used an if statement to load the data first.
if (this.props.dataState.loaded){
data = this.props.data.content;
} else {
this.renderLoading();
}
return( ...
Sometimes it displays the page without issues, other times it effects the other components and they won't load. I always get the console errors. Any idea what I'm doing wrong?
Thanks!