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:
balibabu
2024-12-23 15:17:56 +08:00
committed by GitHub
parent 8f070c3d56
commit a4bccc1ae7
2 changed files with 40 additions and 21 deletions

View File

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