From: Stephen Smith Date: Thu, 11 Nov 2021 03:55:05 +0000 (-0500) Subject: 18123: stopSubmit on failure in edit group dialog X-Git-Tag: 2.4.0~22^2~21 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/844241adac4afa32679f07874e5c659896399fdc 18123: stopSubmit on failure in edit group dialog Arvados-DCO-1.1-Signed-off-by: Stephen Smith --- diff --git a/src/store/groups-panel/groups-panel-actions.ts b/src/store/groups-panel/groups-panel-actions.ts index e961b347..6d17db19 100644 --- a/src/store/groups-panel/groups-panel-actions.ts +++ b/src/store/groups-panel/groups-panel-actions.ts @@ -85,6 +85,7 @@ export const updateGroup = (project: ProjectUpdateFormDialogData) => dispatch(dialogActions.CLOSE_DIALOG({ id: PROJECT_UPDATE_FORM_NAME })); return updatedGroup; } catch (e) { + dispatch(stopSubmit(PROJECT_UPDATE_FORM_NAME)); const error = getCommonResourceServiceError(e); if (error === CommonResourceServiceError.UNIQUE_NAME_VIOLATION) { dispatch(stopSubmit(PROJECT_UPDATE_FORM_NAME, { name: 'Group with the same name already exists.' } as FormErrors));