Don't show history nav if 404ing
This commit is contained in:
parent
6b0c0f2d88
commit
4743912d9d
1 changed files with 7 additions and 7 deletions
|
|
@ -232,17 +232,17 @@ class Posts extends Component {
|
|||
/>
|
||||
);
|
||||
|
||||
let jawn = articles;
|
||||
let jawn = (
|
||||
<div>
|
||||
{articles}
|
||||
<HistoryNav prev={this.state.prevHref} next={this.state.nextHref} />
|
||||
</div>
|
||||
)
|
||||
if (articles.length === 0) {
|
||||
jawn = <NotFound />;
|
||||
}
|
||||
|
||||
return (
|
||||
<div>
|
||||
{ jawn }
|
||||
<HistoryNav prev={this.state.prevHref} next={this.state.nextHref} />
|
||||
</div>
|
||||
)
|
||||
return jawn
|
||||
} else {
|
||||
return <p></p>
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue