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.');