mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Feat: If there is no result in the recall test, an empty data image will be displayed. #4182 (#4183)
### What problem does this PR solve? Feat: If there is no result in the recall test, an empty data image will be displayed. #4182 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -248,4 +248,14 @@ export const useSelectTestingResult = (): ITestingResult => {
|
||||
total: 0,
|
||||
}) as ITestingResult;
|
||||
};
|
||||
|
||||
export const useSelectIsTestingSuccess = () => {
|
||||
const status = useMutationState({
|
||||
filters: { mutationKey: ['testChunk'] },
|
||||
select: (mutation) => {
|
||||
return mutation.state.status;
|
||||
},
|
||||
});
|
||||
return status.at(-1) === 'success';
|
||||
};
|
||||
//#endregion
|
||||
|
||||
Reference in New Issue
Block a user