mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-13 08:28:22 +08:00
Fix: The retrieval_test interface is continuously requested when the user enters a question. #13719 (#13720)
### What problem does this PR solve? Fix: The retrieval_test interface is continuously requested when the user enters a question. #13719 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@@ -26,7 +26,7 @@ const mergeFilterValue = (
|
||||
filterValue: FilterValue,
|
||||
ids: string[],
|
||||
): FilterValue => {
|
||||
let value = {} as FilterValue;
|
||||
const value = {} as FilterValue;
|
||||
for (const key in filterValue) {
|
||||
if (Array.isArray(filterValue[key])) {
|
||||
const keyIds = filterValue[key] as string[];
|
||||
@@ -52,7 +52,7 @@ export function useHandleFilterSubmit() {
|
||||
if (!filters?.length || !filterValue) {
|
||||
return;
|
||||
}
|
||||
let validFields = filters.reduce((pre, cur) => {
|
||||
const validFields = filters.reduce((pre, cur) => {
|
||||
return [...pre, ...getFilterIds(cur as FilterType)];
|
||||
}, [] as string[]);
|
||||
if (!validFields.length) {
|
||||
|
||||
Reference in New Issue
Block a user