From 8dc65f554336541c0cd605e0fe6587dd2ca6bdd0 Mon Sep 17 00:00:00 2001 From: imamSidero Date: Tue, 15 Nov 2022 10:18:16 +0000 Subject: Provide tosca function to map values Providing the capability to add tosca function as the map values against it's key Issue-ID: SDC-4264 Signed-off-by: Imam hussain Change-Id: Ieaa49f9ac18b848bfd3996e9c6e08f9b4a32b999 --- .../app/ng2/pages/properties-assignment/services/properties.utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'catalog-ui/src/app/ng2/pages/properties-assignment/services') diff --git a/catalog-ui/src/app/ng2/pages/properties-assignment/services/properties.utils.ts b/catalog-ui/src/app/ng2/pages/properties-assignment/services/properties.utils.ts index 747de7c00f..876fc8e5fa 100644 --- a/catalog-ui/src/app/ng2/pages/properties-assignment/services/properties.utils.ts +++ b/catalog-ui/src/app/ng2/pages/properties-assignment/services/properties.utils.ts @@ -202,7 +202,7 @@ export class PropertiesUtils { } else if (prop.derivedDataType == DerivedPropertyType.LIST) { prop.valueObj = (prop.valueObj === null || typeof prop.valueObj != 'object') ? JSON.parse(prop.valueObj || '[]') : prop.valueObj; } else if (prop.derivedDataType == DerivedPropertyType.MAP) { - if (!prop.isChildOfListOrMap || !prop.schema.property.isSimpleType) { + if (!prop.isChildOfListOrMap) { prop.valueObj = (prop.valueObj === null || typeof prop.valueObj != 'object') ? JSON.parse(prop.valueObj || '{}') : prop.valueObj; } } -- cgit 1.2.3-korg