Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix(pagination): skip page reset when totalCount is 0 on initial load
Igor Correa4546ac96b5a0
diff --git a/frontend/src/hooks/useResetPageHelper.ts b/frontend/src/hooks/useResetPageHelper.tsindex 12478fd54f..4f967a030a 100644--- a/frontend/src/hooks/useResetPageHelper.ts+++ b/frontend/src/hooks/useResetPageHelper.ts@@ -11,6 +11,6 @@ export const useResetPageHelper = ({}) => {useEffect(() => {// reset page if no longer valid- if (totalCount <= offset) setPage(1);+ if (totalCount > 0 && totalCount <= offset) setPage(1);}, [totalCount]);};