From 52f5675eb1ec5a0a06e0f611d71cabfe6c6e2a44 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Mon, 15 Feb 2021 13:23:46 +0100 Subject: [PATCH] Update BetterSearchPage.plugin.js --- Plugins/BetterSearchPage/BetterSearchPage.plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/BetterSearchPage/BetterSearchPage.plugin.js b/Plugins/BetterSearchPage/BetterSearchPage.plugin.js index e5a13cf79c..2524d0ad09 100644 --- a/Plugins/BetterSearchPage/BetterSearchPage.plugin.js +++ b/Plugins/BetterSearchPage/BetterSearchPage.plugin.js @@ -125,7 +125,7 @@ module.exports = (_ => { children[index].props.totalResults = children[index].props.totalResults > 5000 ? 5000 : children[index].props.totalResults; let pagination = children[index].type(children[index].props); - if (!pagination || !pagination.props.children) return; + if (!pagination || maxPage < 2) return; pagination.props.className = BDFDB.DOMUtils.formatClassName(pagination.props.className, BDFDB.disCN.pagination, BDFDB.disCN._bettersearchpagepagination, settings.addJumpTo && BDFDB.disCN.paginationmini); if (settings.addJumpTo) {