mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-03 14:27:32 +08:00
Fix: Some bugs (#14734)
### What problem does this PR solve? Fix: Some bugs - Error during batch modification of metadata in the Knowledge Base - Manually configured metadata is not displayed in search settings ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@@ -50,10 +50,18 @@ export function MetadataFilter({
|
||||
|
||||
const methodName = prefix + 'meta_data_filter.method';
|
||||
|
||||
const kbIds: string[] = useWatch({
|
||||
const datasetIds: string[] = useWatch({
|
||||
control: form.control,
|
||||
name: prefix + 'dataset_ids',
|
||||
});
|
||||
|
||||
const oldKbIds: string[] = useWatch({
|
||||
control: form.control,
|
||||
name: prefix + 'kb_ids',
|
||||
});
|
||||
|
||||
const kbIds = datasetIds || oldKbIds || [];
|
||||
|
||||
const metadata = useWatch({
|
||||
control: form.control,
|
||||
name: methodName,
|
||||
|
||||
Reference in New Issue
Block a user