diff options
Diffstat (limited to 'catalog-ui/src/app/services')
-rw-r--r-- | catalog-ui/src/app/services/data-types-service.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/catalog-ui/src/app/services/data-types-service.ts b/catalog-ui/src/app/services/data-types-service.ts index 1a0fc47aae..ad8dc59b8c 100644 --- a/catalog-ui/src/app/services/data-types-service.ts +++ b/catalog-ui/src/app/services/data-types-service.ts @@ -71,13 +71,13 @@ export class DataTypesService implements IDataTypesService { selectedInstance:ComponentInstance; selectedComponentInputs:Array<InputModel>; - public loadDataTypesCache = (modelName: string): void => { + public loadDataTypesCache = async (modelName: string): Promise<void> => { let model; if (modelName) { model = {'model': modelName} } - this.$http.get(this.baseUrl+"dataTypes", {params: model}) - .then((response:any) => { + await this.$http.get(this.baseUrl + "dataTypes", {params: model}) + .then((response: any) => { this.dataTypes = response.data; delete this.dataTypes['tosca.datatypes.Root']; }); |