From 78a93ff46e7e9a38b9865fa743c88e1008adc81e Mon Sep 17 00:00:00 2001 From: Lucas Di Pentima Date: Fri, 9 Dec 2022 17:00:31 +0100 Subject: [PATCH] 19691: Avoid showing generic errors on collection & project create dialogs. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- src/store/collections/collection-create-actions.ts | 2 +- src/store/projects/project-create-actions.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/collections/collection-create-actions.ts b/src/store/collections/collection-create-actions.ts index 17fecc1e15..92e773c9a6 100644 --- a/src/store/collections/collection-create-actions.ts +++ b/src/store/collections/collection-create-actions.ts @@ -59,7 +59,7 @@ export const createCollection = (data: CollectionCreateFormDialogData) => let newCollection: CollectionResource | undefined; try { dispatch(progressIndicatorActions.START_WORKING(COLLECTION_CREATE_FORM_NAME)); - newCollection = await services.collectionService.create(data); + newCollection = await services.collectionService.create(data, false); await dispatch(uploadCollectionFiles(newCollection.uuid)); dispatch(dialogActions.CLOSE_DIALOG({ id: COLLECTION_CREATE_FORM_NAME })); dispatch(reset(COLLECTION_CREATE_FORM_NAME)); diff --git a/src/store/projects/project-create-actions.ts b/src/store/projects/project-create-actions.ts index 23eaf7a4a5..ddf5064e31 100644 --- a/src/store/projects/project-create-actions.ts +++ b/src/store/projects/project-create-actions.ts @@ -65,7 +65,7 @@ export const createProject = (project: Partial) => async (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => { dispatch(startSubmit(PROJECT_CREATE_FORM_NAME)); try { - const newProject = await services.projectService.create(project); + const newProject = await services.projectService.create(project, false); dispatch(dialogActions.CLOSE_DIALOG({ id: PROJECT_CREATE_FORM_NAME })); dispatch(reset(PROJECT_CREATE_FORM_NAME)); return newProject; -- 2.30.2