Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Commit

Permalink
fix: do not return noData until loading is done (#510)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesperwiner authored Jan 25, 2019
1 parent 254cf05 commit a6b59df
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ class TableContentWrapper extends Component {
borderlessRows,
} = this.props;

if (typeof loading === 'undefined') {
return null;
}

if (rowData.length > 0) {
return (
<div className={classes.root}>
Expand Down Expand Up @@ -95,6 +91,9 @@ class TableContentWrapper extends Component {
</div>
);
}
if (loading) {
return null;
}
return <div className={classes.feedback}>{localization.noData}</div>;
}
}
Expand Down

0 comments on commit a6b59df

Please sign in to comment.