From f9498e6ee979e33fcd42b3d54551b19e4ab84a8f Mon Sep 17 00:00:00 2001 From: MichaelMorris Date: Tue, 17 May 2022 10:12:03 +0100 Subject: Fix delete of entry from list of maps Signed-off-by: MichaelMorris Issue-ID: SDC-4007 Change-Id: Idf60ceabe5a992ece44553d7dc85e63b6ad6fec3 --- .../properties-table/dynamic-property/dynamic-property.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'catalog-ui') diff --git a/catalog-ui/src/app/ng2/components/logic/properties-table/dynamic-property/dynamic-property.component.ts b/catalog-ui/src/app/ng2/components/logic/properties-table/dynamic-property/dynamic-property.component.ts index 1e51b41bf0..865aea6598 100644 --- a/catalog-ui/src/app/ng2/components/logic/properties-table/dynamic-property/dynamic-property.component.ts +++ b/catalog-ui/src/app/ng2/components/logic/properties-table/dynamic-property/dynamic-property.component.ts @@ -210,7 +210,7 @@ export class DynamicPropertyComponent { return; } - if (item.derivedDataType == DerivedPropertyType.MAP) { + if (item.derivedDataType == DerivedPropertyType.MAP && !item.mapInlist) { const oldKey = item.getActualMapKey(); delete itemParent.valueObj[oldKey]; if (itemParent instanceof PropertyFEModel) { -- cgit 1.2.3-korg