19691: Avoid showing generic errors on collection & project update dialogs.
authorLucas Di Pentima <lucas.dipentima@curii.com>
Fri, 9 Dec 2022 15:46:11 +0000 (16:46 +0100)
committerLucas Di Pentima <lucas.dipentima@curii.com>
Fri, 9 Dec 2022 15:46:11 +0000 (16:46 +0100)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>

src/store/collections/collection-update-actions.ts
src/store/projects/project-update-actions.ts

index bf9c64492d79cef6a5f6a75708436866a9700e0b..2e66ce2caea1710cf77359040bb1143ca2ab1b82 100644 (file)
@@ -52,7 +52,7 @@ export const updateCollection = (collection: CollectionUpdateFormDialogData) =>
             name: collection.name,
             storageClassesDesired: collection.storageClassesDesired,
             description: collection.description,
-            properties: collection.properties }
+            properties: collection.properties }, false
         ).then(updatedCollection => {
             updatedCollection = {...cachedCollection, ...updatedCollection};
             dispatch(collectionPanelActions.SET_COLLECTION(updatedCollection));
index a6e6748535596e26d09c9b3f948ebf1cabe186dd..a9255e293282fb1c1e46863bdb6ad9a06f8611a5 100644 (file)
@@ -61,7 +61,8 @@ export const updateProject = (project: ProjectUpdateFormDialogData) =>
                     name: project.name,
                     description: project.description,
                     properties: project.properties,
-                });
+                },
+                false);
             dispatch(projectPanelActions.REQUEST_ITEMS());
             dispatch(reset(PROJECT_UPDATE_FORM_NAME));
             dispatch(dialogActions.CLOSE_DIALOG({ id: PROJECT_UPDATE_FORM_NAME }));