Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen@curii.com>
schedulingParameters,
useExisting,
} = process;
- await services.containerRequestService.create({
+ const newProcess = await services.containerRequestService.create({
command,
containerCountMax,
containerImage,
useExisting,
});
dispatch(dialogActions.CLOSE_DIALOG({ id: PROCESS_COPY_FORM_NAME }));
- return process;
+ return newProcess;
} catch (e) {
dispatch(dialogActions.CLOSE_DIALOG({ id: PROCESS_COPY_FORM_NAME }));
throw new Error('Could not copy the process.');
kind: SnackbarKind.SUCCESS,
})
);
+ dispatch<any>(navigateTo(process.uuid));
} catch (e) {
dispatch(
snackbarActions.OPEN_SNACKBAR({