X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/7486a3262490a384017ee6c826a408a017a79f55..eb909803c6fe3c99894ac402a88ea7cbc114f66b:/src/store/processes/process-copy-actions.ts diff --git a/src/store/processes/process-copy-actions.ts b/src/store/processes/process-copy-actions.ts index a9ae64e676..bb8d8f5aec 100644 --- a/src/store/processes/process-copy-actions.ts +++ b/src/store/processes/process-copy-actions.ts @@ -43,10 +43,7 @@ export const copyProcess = (resource: CopyFormDialogData) => dispatch(dialogActions.CLOSE_DIALOG({ id: PROCESS_COPY_FORM_NAME })); return process; } catch (e) { - if (e) { - dispatch(dialogActions.CLOSE_DIALOG({ id: PROCESS_COPY_FORM_NAME })); - throw new Error('Could not copy the process.'); - } - return; + dispatch(dialogActions.CLOSE_DIALOG({ id: PROCESS_COPY_FORM_NAME })); + throw new Error('Could not copy the process.'); } }; \ No newline at end of file