### 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)tags/v0.1.0
| const { data = [] } = knowledgeModel; | const { data = [] } = knowledgeModel; | ||||
| const list = useMemo(() => { | const list = useMemo(() => { | ||||
| return shouldFilterListWithoutDocument | return shouldFilterListWithoutDocument | ||||
| ? data.filter((x: IKnowledge) => x.doc_num > 0) | |||||
| ? data.filter((x: IKnowledge) => x.chunk_num > 0) | |||||
| : data; | : data; | ||||
| }, [data, shouldFilterListWithoutDocument]); | }, [data, shouldFilterListWithoutDocument]); | ||||