17944: Request the vocabulary exclusively from the new controller's endpoint.
[arvados-workbench2.git] / src / services / vocabulary-service / vocabulary-service.ts
index ff2de1596443e14f8b818407f1632ba095c3880b..38163f77860d2d41af57c1526df3f752009df4a7 100644 (file)
@@ -10,9 +10,9 @@ export class VocabularyService {
         private url: string
     ) { }
 
-    getVocabulary() {
-        return Axios
-            .get<Vocabulary>(this.url)
-            .then(response => response.data);
+    async getVocabulary() {
+        const response = await Axios
+            .get<Vocabulary>(this.url);
+        return response.data;
     }
 }