fixt(import): update cancel functions to accept session UUID and modify related tests

This commit is contained in:
GitHub Actions
2026-03-02 14:30:24 +00:00
parent a75dd2dcdd
commit 16752f4bb1
12 changed files with 252 additions and 16 deletions

View File

@@ -46,7 +46,10 @@ export function useJSONImport() {
});
const cancelMutation = useMutation({
mutationFn: cancelJSONImport,
mutationFn: () => {
if (!sessionId) throw new Error('No active session');
return cancelJSONImport(sessionId);
},
onSuccess: () => {
setPreview(null);
setSessionId(null);