Skip to content

Commit be7d367

Browse files
authored
fix: check login status before requesting healthStatus (#205)
Co-authored-by: GitHub Actions Bot <>
1 parent 8cd2a4b commit be7d367

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Resources/app/administration/src/api/frosh-tools.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ class FroshTools extends ApiService {
8080
}
8181

8282
healthStatus() {
83+
if (!this.loginService.isLoggedIn()) {
84+
return;
85+
}
86+
8387
const apiRoute = `${this.getApiBasePath()}/health/status`;
8488
return this.httpClient.get(
8589
apiRoute,

0 commit comments

Comments
 (0)