projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into 14393-improve-autoselect
[arvados.git]
/
src
/
common
/
config.ts
diff --git
a/src/common/config.ts
b/src/common/config.ts
index c74277e42cc1ff78a9499e688f9f3bc171ca2835..b7b89bd9e4930100188725b7f117f67abf076587 100644
(file)
--- a/
src/common/config.ts
+++ b/
src/common/config.ts
@@
-60,7
+60,8
@@
export const fetchConfig = () => {
.then(config => Axios
.get<Config>(getDiscoveryURL(config.API_HOST))
.then(response => ({
.then(config => Axios
.get<Config>(getDiscoveryURL(config.API_HOST))
.then(response => ({
- config: {...response.data, vocabularyUrl: config.VOCABULARY_URL },
+ // TODO: After tests delete `|| '/vocabulary-example.json'`
+ config: {...response.data, vocabularyUrl: config.VOCABULARY_URL || '/vocabulary-example.json' },
apiHost: config.API_HOST,
})));
apiHost: config.API_HOST,
})));