16118: Restablishes error snackbar on requests.
authorLucas Di Pentima <lucas@di-pentima.com.ar>
Fri, 22 May 2020 20:37:23 +0000 (17:37 -0300)
committerLucas Di Pentima <lucas@di-pentima.com.ar>
Fri, 22 May 2020 20:37:23 +0000 (17:37 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas@di-pentima.com.ar>

src/index.tsx

index eec60dc113c12602f832e9f6ae750f7dd039c0ab..a12dabfae9b62d3777dda3191c6a868b08f8fd9c 100644 (file)
@@ -104,15 +104,13 @@ fetchConfig()
             },
             errorFn: (id, error) => {
                 console.error("Backend error:", error);
-                if (false) { // WIP: Should we mix backend with UI code?
-                    store.dispatch(snackbarActions.OPEN_SNACKBAR({
-                        message: `${error.errors
-                            ? error.errors[0]
-                            : error.message}`,
-                        kind: SnackbarKind.ERROR,
-                        hideDuration: 8000})
-                    );
-                }
+                store.dispatch(snackbarActions.OPEN_SNACKBAR({
+                    message: `${error.errors
+                        ? error.errors[0]
+                        : error.message}`,
+                    kind: SnackbarKind.ERROR,
+                    hideDuration: 8000})
+                );
             }
         });
         const store = configureStore(history, services);