mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-01-03 02:55:29 +08:00
### What problem does this PR solve? Feat: Bind the route to the navigation bar in the head #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -6,7 +6,7 @@ import { useClickDrawer } from '@/components/pdf-drawer/hooks';
|
||||
import RetrievalDocuments from '@/components/retrieval-documents';
|
||||
import SvgIcon from '@/components/svg-icon';
|
||||
import {
|
||||
useNextFetchKnowledgeList,
|
||||
useFetchKnowledgeList,
|
||||
useSelectTestingResult,
|
||||
} from '@/hooks/knowledge-hooks';
|
||||
import { useGetPaginationWithRouter } from '@/hooks/logic-hooks';
|
||||
@ -45,7 +45,7 @@ const SearchPage = () => {
|
||||
const { t } = useTranslation();
|
||||
const [checkedList, setCheckedList] = useState<string[]>([]);
|
||||
const { chunks, total } = useSelectTestingResult();
|
||||
const { list: knowledgeList } = useNextFetchKnowledgeList();
|
||||
const { list: knowledgeList } = useFetchKnowledgeList();
|
||||
const checkedWithoutEmbeddingIdList = useMemo(() => {
|
||||
return checkedList.filter((x) => knowledgeList.some((y) => y.id === x));
|
||||
}, [checkedList, knowledgeList]);
|
||||
|
||||
Reference in New Issue
Block a user