Merge branch 'master' into 14452-my-account
[arvados-workbench2.git] / src / common / config.ts
index c74277e42cc1ff78a9499e688f9f3bc171ca2835..b7b89bd9e4930100188725b7f117f67abf076587 100644 (file)
@@ -60,7 +60,8 @@ export const fetchConfig = () => {
         .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, 
             })));