From: Peter Amstutz Date: Mon, 5 Oct 2020 20:56:59 +0000 (-0400) Subject: 16947: do not produce snackbar errors in validateSessions() X-Git-Tag: 2.1.0~3^2 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/2c7ded941806dfa7da0d4e2255257a5e022efe8f 16947: do not produce snackbar errors in validateSessions() Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- diff --git a/src/store/auth/auth-action-session.ts b/src/store/auth/auth-action-session.ts index 0f85e9ac..8fc17810 100644 --- a/src/store/auth/auth-action-session.ts +++ b/src/store/auth/auth-action-session.ts @@ -188,10 +188,11 @@ export const validateSessions = () => places in Workbench2. */ await dispatch(validateSession(session, activeSession)); } catch (e) { - dispatch(snackbarActions.OPEN_SNACKBAR({ - message: e.message, - kind: SnackbarKind.ERROR - })); + // Don't do anything here. User may get + // spammed with multiple messages that are not + // helpful. They can see the individual + // errors by going to site manager and trying + // to toggle the session. } } }