From 044b8bf44cc6cf7e9a437b09db222ff99a29c744 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Sat, 3 Jan 2026 17:34:14 +0100 Subject: [PATCH] fix vault pagination going wild --- client/homebrew/pages/vaultPage/vaultPage.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/homebrew/pages/vaultPage/vaultPage.jsx b/client/homebrew/pages/vaultPage/vaultPage.jsx index f9e14c180..f009c1054 100644 --- a/client/homebrew/pages/vaultPage/vaultPage.jsx +++ b/client/homebrew/pages/vaultPage/vaultPage.jsx @@ -101,7 +101,7 @@ const VaultPage = (props)=>{ const title = titleRef.current.value || ''; const author = authorRef.current.value || ''; - const count = countRef.current.value || 10; + const count = countRef.current.value || 20; const v3 = v3Ref.current.checked != false; const legacy = legacyRef.current.checked != false; const sortOption = sort || 'title'; @@ -288,7 +288,8 @@ const VaultPage = (props)=>{ const renderPaginationControls = ()=>{ if(!totalBrews || totalBrews < 10) return null; - const countInt = parseInt(brewCollection.length || 20); + + const countInt = parseInt(countRef.current.value || 20); const totalPages = Math.ceil(totalBrews / countInt); let startPage, endPage;