Merge pull request #2140 from thornbill/yet-another-startup-fix

Fix use of global ApiClient in authenticate middleware
This commit is contained in:
dkanada 2020-12-02 11:46:34 +09:00 committed by GitHub
commit f9d5a498f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -503,7 +503,7 @@ class AppRouter {
this.firstConnectionResult = null;
if (firstResult && firstResult.State === 'ServerSignIn') {
const url = ApiClient.serverAddress() + '/System/Info/Public';
const url = firstResult.ApiClient.serverAddress() + '/System/Info/Public';
fetch(url).then(response => {
if (!response.ok) return Promise.reject('fetch failed');
return response.json();