Fix: error in retrieval testing page (#13225)

### What problem does this PR solve?

Fix: error in retrieval testing page

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
chanx
2026-02-26 12:39:09 +08:00
committed by GitHub
parent 024edba1b8
commit 8bce212284

View File

@ -101,11 +101,11 @@ export const useTestRetrieval = () => {
});
useEffect(() => {
if (mountedRef.current) {
if (mountedRef.current && !!queryParams.question) {
refetch();
}
mountedRef.current = true;
}, [page, pageSize, refetch, filterValue]);
}, [page, pageSize, refetch, filterValue, queryParams]);
return {
data,