From d06431f67033b23e5537649a6be01992dd183a1b Mon Sep 17 00:00:00 2001 From: Stephen Hu Date: Wed, 14 May 2025 11:53:11 +0800 Subject: [PATCH] FIX: knowledge will not render a paginator when count is greater than 30 (#7596) ### What problem does this PR solve? as https://github.com/infiniflow/ragflow/issues/7538 and https://github.com/infiniflow/ragflow/pull/7550 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- web/src/pages/knowledge/index.tsx | 64 ++++++++++++++++++------------- 1 file changed, 38 insertions(+), 26 deletions(-) diff --git a/web/src/pages/knowledge/index.tsx b/web/src/pages/knowledge/index.tsx index c3bf6c3fd..df9ddb23d 100644 --- a/web/src/pages/knowledge/index.tsx +++ b/web/src/pages/knowledge/index.tsx @@ -50,7 +50,7 @@ const KnowledgeList = () => { }, [data?.pages]); return ( - +
@@ -79,33 +79,45 @@ const KnowledgeList = () => {
- } - endMessage={!!total && {t('noMoreData')} 🤐} - scrollableTarget="scrollableDiv" +
- } + endMessage={ + !!total && {t('noMoreData')} 🤐 + } + scrollableTarget="scrollableDiv" + scrollThreshold="200px" > - {nextList?.length > 0 ? ( - nextList.map((item: any, index: number) => { - return ( - - ); - }) - ) : ( - - )} - - + + {nextList?.length > 0 ? ( + nextList.map((item: any, index: number) => { + return ( + + ); + }) + ) : ( + + )} + + +