From d5c6fa1e2743ea5e8636cbe89aa12f6b218d4349 Mon Sep 17 00:00:00 2001 From: Punam Dahiya Date: Thu, 12 Apr 2018 11:52:58 -0700 Subject: [PATCH] Issue #4180 - Display pagination if more than one page --- server/src/pages/shotindex/view.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/pages/shotindex/view.js b/server/src/pages/shotindex/view.js index 237e0ce1a2..eb4614dce3 100644 --- a/server/src/pages/shotindex/view.js +++ b/server/src/pages/shotindex/view.js @@ -106,9 +106,10 @@ class Body extends React.Component { const hasNext = this.props.pageNumber < totalPages; const nextPageNumber = this.props.pageNumber - 0 + 1; const nextClasses = ["shots-page-nav"].concat(!hasNext && "disabled").join(" "); + const hidden = totalPages < 2; return ( -
+