Skip to content
Snippets Groups Projects
Unverified Commit 963533bc authored by balibabu's avatar balibabu Committed by GitHub
Browse files

fix: all documents in the knowledge base cannot be selected if they have not...

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)
parent 080cbd96
No related branches found
No related tags found
No related merge requests found
......@@ -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]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment