X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/e69ce2f8f14e4272acf5efa4c8a252bc101227ca..e44d47bdea01e25926f4f3ff750f2d1cb4fd8204:/src/store/projects/project-move-actions.ts diff --git a/src/store/projects/project-move-actions.ts b/src/store/projects/project-move-actions.ts index d8eebb81..4dcaf2f5 100644 --- a/src/store/projects/project-move-actions.ts +++ b/src/store/projects/project-move-actions.ts @@ -38,7 +38,7 @@ export const moveProject = (resource: MoveToFormDialogData) => return newProject; } catch (e) { const error = getCommonResourceServiceError(e); - if (error === CommonResourceServiceError.UNIQUE_VIOLATION) { + if (error === CommonResourceServiceError.UNIQUE_NAME_VIOLATION) { dispatch(stopSubmit(PROJECT_MOVE_FORM_NAME, { ownerUuid: 'A project with the same name already exists in the target project.' } as FormErrors)); } else if (error === CommonResourceServiceError.OWNERSHIP_CYCLE) { dispatch(stopSubmit(PROJECT_MOVE_FORM_NAME, { ownerUuid: 'Cannot move a project into itself.' } as FormErrors));