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) {
|
article(match) {
|
||||||
if (this.props.articles) {
|
if (this.props.articles.length > 0) {
|
||||||
return <Article article={this.props.articles[match.params.id]}/>;
|
return <Article article={this.props.articles[match.params.id]}/>;
|
||||||
} else {
|
} else {
|
||||||
return <div></div>;
|
return <div></div>;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue