X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/71b9264c1720e619f8cfcb297a7848ece420c61c..c859c9d9325e2ed86d5d7b067e1209e73ee81251:/src/store/processes/process-move-actions.ts diff --git a/src/store/processes/process-move-actions.ts b/src/store/processes/process-move-actions.ts index 475b4c1f..5ad41fd5 100644 --- a/src/store/processes/process-move-actions.ts +++ b/src/store/processes/process-move-actions.ts @@ -41,7 +41,7 @@ export const moveProcess = (resource: MoveToFormDialogData) => return process; } catch (e) { const error = getCommonResourceServiceError(e); - if (error === CommonResourceServiceError.UNIQUE_VIOLATION) { + if (error === CommonResourceServiceError.UNIQUE_NAME_VIOLATION) { dispatch(stopSubmit(PROCESS_MOVE_FORM_NAME, { ownerUuid: 'A process with the same name already exists in the target project.' } as FormErrors)); } else { dispatch(dialogActions.CLOSE_DIALOG({ id: PROCESS_MOVE_FORM_NAME }));