aboutsummaryrefslogtreecommitdiffstats
path: root/src/web
diff options
context:
space:
mode:
Diffstat (limited to 'src/web')
-rw-r--r--src/web/src/components/App.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/web/src/components/App.js b/src/web/src/components/App.js
index 2f2cab7d..ab45439b 100644
--- a/src/web/src/components/App.js
+++ b/src/web/src/components/App.js
@@ -44,12 +44,13 @@ class App extends Component {
const { login } = this.state;
try {
- await this.fetchApplicationState();
const securityEnabled = await session.getSecurityEnabled();
if (!securityEnabled) {
this.setToken(sessionStorage, tokenPassthroughValue)
}
+
+ await this.fetchApplicationState();
this.setState({
token: this.getToken(),
@@ -123,7 +124,7 @@ class App extends Component {
error: false,
});
} catch (err) {
- this.setState({ error: true })
+ this.setState({ error: err?.response?.status !== 401 })
}
};