fixt(import): update cancel functions to accept session UUID and modify related tests
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user