15768: narrowed 422 handling on copyCollection Arvados-DCO-1.1-Signed-off-by: Lisa...
[arvados-workbench2.git] / src / index.tsx
index f2c06666d6f1c7989c14311b74a2f4c1c05af60d..cddfb464315ba3304c42218bb59f16c262611e16 100644 (file)
@@ -152,7 +152,7 @@ fetchConfig().then(({ config, apiHost }) => {
                 } else if (error.status === 401 && error.errors[0].indexOf("Not logged in") > -1) {
                     // Catch auth errors when navigating and redirect to login preserving url location
                     store.dispatch(logout(false, true));
-                } else if (error.status !== 422) {
+                } else {
                     store.dispatch(
                         snackbarActions.OPEN_SNACKBAR({
                             message: `${error.errors ? error.errors[0] : error.message}`,