From 844241adac4afa32679f07874e5c659896399fdc Mon Sep 17 00:00:00 2001 From: Stephen Smith Date: Wed, 10 Nov 2021 22:55:05 -0500 Subject: [PATCH] 18123: stopSubmit on failure in edit group dialog Arvados-DCO-1.1-Signed-off-by: Stephen Smith --- src/store/groups-panel/groups-panel-actions.ts | 1 + 1 file changed, 1 insertion(+) 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)); -- 2.30.2