X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/6ffe67b266e94bb69098e46b102833c845288dba..912507a5c39c975554325f528e9b155ff42a03b1:/src/store/projects/project-create-actions.ts diff --git a/src/store/projects/project-create-actions.ts b/src/store/projects/project-create-actions.ts index e70ff0f6..c15c3748 100644 --- a/src/store/projects/project-create-actions.ts +++ b/src/store/projects/project-create-actions.ts @@ -79,8 +79,11 @@ export const createProject = (project: Partial) => } else { dispatch(stopSubmit(PROJECT_CREATE_FORM_NAME)); dispatch(dialogActions.CLOSE_DIALOG({ id: PROJECT_CREATE_FORM_NAME })); + const errMsg = e.errors + ? e.errors.join('') + : 'There was an error while creating the collection'; dispatch(snackbarActions.OPEN_SNACKBAR({ - message: e.errors.join(''), + message: errMsg, hideDuration: 2000, kind: SnackbarKind.ERROR }));