projects
/
arvados-workbench2.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
022c93c
)
18123: stopSubmit on failure in edit group dialog
author
Stephen Smith <stephen@curii.com>
Thu, 11 Nov 2021 03:55:05 +0000
(22:55 -0500)
committer
Stephen Smith <stephen@curii.com>
Fri, 19 Nov 2021 19:36:15 +0000
(14:36 -0500)
Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen@curii.com>
src/store/groups-panel/groups-panel-actions.ts
patch
|
blob
|
history
diff --git
a/src/store/groups-panel/groups-panel-actions.ts
b/src/store/groups-panel/groups-panel-actions.ts
index e961b347140ad1218cee18c5953969e9d161b967..6d17db1956fb09050586b11365208750f2e44175 100644
(file)
--- 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));