diff --git a/ui/src/app/Router.jsx b/ui/src/app/Router.jsx index 58c6208aa..7c11f3744 100644 --- a/ui/src/app/Router.jsx +++ b/ui/src/app/Router.jsx @@ -61,7 +61,10 @@ class Router extends Component { fetchIfNeeded() { const { metadata, messages } = this.props; - if (metadata.shouldLoad && !metadata.isError) { + if ( + metadata.shouldLoad && + (!metadata.isError || metadata.error?.response?.status === 401) + ) { this.props.fetchMetadata(); }