summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-ui/src/app/ng2')
-rw-r--r--catalog-ui/src/app/ng2/services/component-services/topology-template.service.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/catalog-ui/src/app/ng2/services/component-services/topology-template.service.ts b/catalog-ui/src/app/ng2/services/component-services/topology-template.service.ts
index 992149976e..7b726e4172 100644
--- a/catalog-ui/src/app/ng2/services/component-services/topology-template.service.ts
+++ b/catalog-ui/src/app/ng2/services/component-services/topology-template.service.ts
@@ -374,8 +374,9 @@ export class TopologyTemplateService {
// ------------------------------------------------ Properties API --------------------------------------------------//
addProperty = (componentType: string, componentId: string, property: PropertyModel):Observable<PropertyModel> => {
- return this.http.post<PropertyModel>(this.baseUrl + this.getServerTypeUrl(componentType) + componentId + '/properties', property.convertToServerObject()).map((response) => {
- return new PropertyModel(response[Object.keys(response)[0]]);
+ return this.http.post<PropertyModel>(this.baseUrl + this.getServerTypeUrl(componentType) + componentId + '/properties', property.convertToServerObject())
+ .map((response) => {
+ return new PropertyModel(response);
});
}