Fix delete of entry from list of maps 85/129285/3
authorMichaelMorris <michael.morris@est.tech>
Tue, 17 May 2022 09:12:03 +0000 (10:12 +0100)
committerAndr� Schmid <andre.schmid@est.tech>
Tue, 17 May 2022 13:01:22 +0000 (13:01 +0000)
Signed-off-by: MichaelMorris <michael.morris@est.tech>
Issue-ID: SDC-4007
Change-Id: Idf60ceabe5a992ece44553d7dc85e63b6ad6fec3

catalog-ui/src/app/ng2/components/logic/properties-table/dynamic-property/dynamic-property.component.ts

index 1e51b41..865aea6 100644 (file)
@@ -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) {