mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-10 16:59:01 +08:00
fix: all documents in the knowledge base cannot be selected if they have not been parsed. #214 (#215)
### What problem does this PR solve? fix: all documents in the knowledge base cannot be selected if they have not been parsed. Issue link: #214 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
080cbd96e8
commit
963533bc27
@ -135,7 +135,7 @@ export const useFetchKnowledgeList = (
|
||||
const { data = [] } = knowledgeModel;
|
||||
const list = useMemo(() => {
|
||||
return shouldFilterListWithoutDocument
|
||||
? data.filter((x: IKnowledge) => x.doc_num > 0)
|
||||
? data.filter((x: IKnowledge) => x.chunk_num > 0)
|
||||
: data;
|
||||
}, [data, shouldFilterListWithoutDocument]);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user