From 41612209656fcf9c6c95607e7a5ea94e74f80dad Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Thu, 18 May 2023 18:14:12 -0400 Subject: [PATCH] Fix extra requests in standalone mode --- src/utils/dashboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/dashboard.js b/src/utils/dashboard.js index 8ceb81229..1815dae24 100644 --- a/src/utils/dashboard.js +++ b/src/utils/dashboard.js @@ -19,7 +19,7 @@ export function getCurrentUser() { // TODO: investigate url prefix support for serverAddress function export async function serverAddress() { - const apiClient = window.ApiClient; + const apiClient = window.ApiClient ?? ServerConnections.currentApiClient(); if (apiClient) { return Promise.resolve(apiClient.serverAddress());