Additional Fix to articles.js
This commit is contained in:
parent
f836a19c6d
commit
ce0503ad11
|
|
@ -41,7 +41,7 @@ class Articles extends React.Component {
|
|||
}
|
||||
|
||||
article(match) {
|
||||
if (this.props.articles) {
|
||||
if (this.props.articles.length > 0) {
|
||||
return <Article article={this.props.articles[match.params.id]}/>;
|
||||
} else {
|
||||
return <div></div>;
|
||||
|
|
|
|||
Loading…
Reference in New Issue