Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #3862 from chenba/3857-no-pages-on-empty
Browse files Browse the repository at this point in the history
Do Not Show Pagination Content When Total Shots Count is Undefined
  • Loading branch information
ianb authored Nov 29, 2017
2 parents 4968d47 + 5a9fca8 commit c4818d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/pages/shotindex/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class Body extends React.Component {
}

renderPageNavigation() {
if (parseInt(this.props.totalShots, 10) === 0) {
if (!this.props.totalShots || parseInt(this.props.totalShots, 10) === 0) {
return null;
}

Expand Down

0 comments on commit c4818d6

Please # to comment.