Merge pull request #2140 from thornbill/yet-another-startup-fix
Fix use of global ApiClient in authenticate middleware
This commit is contained in:
commit
f9d5a498f5
1 changed files with 1 additions and 1 deletions
|
@ -503,7 +503,7 @@ class AppRouter {
|
||||||
|
|
||||||
this.firstConnectionResult = null;
|
this.firstConnectionResult = null;
|
||||||
if (firstResult && firstResult.State === 'ServerSignIn') {
|
if (firstResult && firstResult.State === 'ServerSignIn') {
|
||||||
const url = ApiClient.serverAddress() + '/System/Info/Public';
|
const url = firstResult.ApiClient.serverAddress() + '/System/Info/Public';
|
||||||
fetch(url).then(response => {
|
fetch(url).then(response => {
|
||||||
if (!response.ok) return Promise.reject('fetch failed');
|
if (!response.ok) return Promise.reject('fetch failed');
|
||||||
return response.json();
|
return response.json();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue