X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/ad17f8efd3c26dda57264156cfc9a80c51c3a639..748c1377880459b66b6d84f483cc81e10f61dbf8:/src/services/vocabulary-service/vocabulary-service.ts diff --git a/src/services/vocabulary-service/vocabulary-service.ts b/src/services/vocabulary-service/vocabulary-service.ts index ff2de159..38163f77 100644 --- a/src/services/vocabulary-service/vocabulary-service.ts +++ b/src/services/vocabulary-service/vocabulary-service.ts @@ -10,9 +10,9 @@ export class VocabularyService { private url: string ) { } - getVocabulary() { - return Axios - .get(this.url) - .then(response => response.data); + async getVocabulary() { + const response = await Axios + .get(this.url); + return response.data; } }