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:
balibabu
2026-03-20 15:46:41 +08:00
committed by GitHub
parent 9ce766192f
commit 0507463f4e
5 changed files with 57 additions and 47 deletions

View File

@@ -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) {