mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-02-01 16:15:07 +08:00
Fix: Bugs fixed (#12524)
### What problem does this PR solve? Fix: Bugs fixed - The issue of filter conditions not being able to be deleted on the knowledge base file page - The issue of metadata filter conditions not working. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -14,7 +14,7 @@ import { useRowSelection } from '@/hooks/logic-hooks/use-row-selection';
|
||||
import { useFetchDocumentList } from '@/hooks/use-document-request';
|
||||
import { useFetchKnowledgeBaseConfiguration } from '@/hooks/use-knowledge-request';
|
||||
import { Pen, Upload } from 'lucide-react';
|
||||
import { useMemo } from 'react';
|
||||
import { useEffect, useMemo } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import {
|
||||
MetadataType,
|
||||
@ -48,6 +48,7 @@ export default function Dataset() {
|
||||
filterValue,
|
||||
handleFilterSubmit,
|
||||
loading,
|
||||
checkValue,
|
||||
} = useFetchDocumentList();
|
||||
|
||||
const refreshCount = useMemo(() => {
|
||||
@ -75,6 +76,10 @@ export default function Dataset() {
|
||||
config: metadataConfig,
|
||||
} = useManageMetadata();
|
||||
|
||||
useEffect(() => {
|
||||
checkValue(filters);
|
||||
}, [filters]);
|
||||
|
||||
const { rowSelection, rowSelectionIsEmpty, setRowSelection, selectedCount } =
|
||||
useRowSelection();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user