X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/1efb1298d58148c4060f00b3713812f4d6f5b90c..fec738a21a4107bf60c3bcff7d274697833e01dd:/src/common/config.ts diff --git a/src/common/config.ts b/src/common/config.ts index 1504cdcc1b..afbeb5aecc 100644 --- a/src/common/config.ts +++ b/src/common/config.ts @@ -157,7 +157,6 @@ export const fetchConfig = () => { return Axios.get(getClusterConfigURL(workbenchConfig.API_HOST)).then(async response => { const apiRevision = await getApiRevision(response.data.Services.Controller.ExternalURL.replace(/\/+$/, '')); const config = { ...buildConfig(response.data), apiRevision }; - const clusterConfigJSON = config.clusterConfig; const warnLocalConfig = (varName: string) => console.warn( `A value for ${varName} was found in ${WORKBENCH_CONFIG_URL}. To use the Arvados centralized configuration instead, \ remove the entire ${varName} entry from ${WORKBENCH_CONFIG_URL}`); @@ -171,7 +170,7 @@ remove the entire ${varName} entry from ${WORKBENCH_CONFIG_URL}`); fileViewerConfigUrl = workbenchConfig.FILE_VIEWERS_CONFIG_URL; } else { - fileViewerConfigUrl = clusterConfigJSON.Workbench.FileViewersConfigURL || "/file-viewers-example.json"; + fileViewerConfigUrl = config.clusterConfig.Workbench.FileViewersConfigURL || "/file-viewers-example.json"; } config.fileViewersConfigUrl = fileViewerConfigUrl; @@ -181,7 +180,7 @@ remove the entire ${varName} entry from ${WORKBENCH_CONFIG_URL}`); vocabularyUrl = workbenchConfig.VOCABULARY_URL; } else { - vocabularyUrl = clusterConfigJSON.Workbench.VocabularyURL || "/vocabulary-example.json"; + vocabularyUrl = config.clusterConfig.Workbench.VocabularyURL || "/vocabulary-example.json"; } config.vocabularyUrl = vocabularyUrl;