improve panel details - show modal description using rich text editor
[arvados.git] / src / store / processes / process-copy-actions.ts
index a9ae64e6769fcb5d0096047dc4cda85a02b012b6..bb8d8f5aeca95d9fd1c27de94817e99cc7251cc3 100644 (file)
@@ -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