X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f63f3a5360ae6381d4b332bf86ef52b4e22107fb..c038a5258d5790773ccca89a192c8c2b7dcd86cb:/src/common/config.ts?ds=sidebyside diff --git a/src/common/config.ts b/src/common/config.ts index 061f9c00af..1ab73294b0 100644 --- a/src/common/config.ts +++ b/src/common/config.ts @@ -56,8 +56,10 @@ export const fetchConfig = () => { .get(CONFIG_URL + "?nocache=" + (new Date()).getTime()) .then(response => response.data) .catch(() => Promise.resolve(getDefaultConfig())) - .then(config => Axios.get(getDiscoveryURL(config.API_HOST))) - .then(response => response.data); + .then(config => Axios + .get(getDiscoveryURL(config.API_HOST)) + .then(response => ({ config: response.data, apiHost: config.API_HOST }))); + }; export const mockConfig = (config: Partial): Config => ({