diff --git a/public_html/js/Presenters/PagedCollectionPresenter.js b/public_html/js/Presenters/PagedCollectionPresenter.js
index 884c3d3f..a63debd8 100644
--- a/public_html/js/Presenters/PagedCollectionPresenter.js
+++ b/public_html/js/Presenters/PagedCollectionPresenter.js
@@ -154,6 +154,9 @@ App.Presenters.PagedCollectionPresenter = function(
}
function refreshPageList() {
+ if (typeof(totalPages) === 'undefined') {
+ return;
+ }
var pages = getVisiblePages();
$pageList.empty();
var lastPage = 0;