From c0b42b6825ba8ad4d3ed5483d2eeeb889a10693c Mon Sep 17 00:00:00 2001 From: Chirag Madlani <12962843+chirag-madlani@users.noreply.github.com> Date: Tue, 6 Sep 2022 12:49:07 +0530 Subject: [PATCH] fix(ui): hide error if API throws un-authorized (#7244) --- .../ui/src/authentication/auth-provider/AuthProvider.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/openmetadata-ui/src/main/resources/ui/src/authentication/auth-provider/AuthProvider.tsx b/openmetadata-ui/src/main/resources/ui/src/authentication/auth-provider/AuthProvider.tsx index afabe3016d6..7faf1b725c3 100644 --- a/openmetadata-ui/src/main/resources/ui/src/authentication/auth-provider/AuthProvider.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/authentication/auth-provider/AuthProvider.tsx @@ -422,7 +422,6 @@ export const AuthProvider = ({ const { status } = error.response; if (status === ClientErrors.UNAUTHORIZED) { storeRedirectPath(); - showErrorToast(error); resetUserDetails(true); } }