X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/c0411a76d1ae1e076dac049267a54366df1c8517..172ba18e43743d90b8a1110d62209be2ab7627d1:/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 57bdd7c9..38163f77 100644 --- a/src/services/vocabulary-service/vocabulary-service.ts +++ b/src/services/vocabulary-service/vocabulary-service.ts @@ -3,16 +3,16 @@ // SPDX-License-Identifier: AGPL-3.0 import Axios from 'axios'; -import { Vocabulary } from '~/models/vocabulary'; +import { Vocabulary } from 'models/vocabulary'; export class VocabularyService { constructor( 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; } }