aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJvD_Ericsson <jeff.van.dam@est.tech>2023-02-24 10:33:36 +0000
committerMichael Morris <michael.morris@est.tech>2023-03-01 17:23:08 +0000
commitabb060a44182ff44fb9747f5d924e2ee35d7139f (patch)
tree8ea74f800196e699138e82d59b19c788b96ab751
parentdf032c3d51907581dca82be7718c45df6673eb7b (diff)
VFC operation not clearing artifact details when unchecked
Issue-ID: SDC-4420 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: I338eda3e714782585a69cf15347afdebe467e312
-rw-r--r--catalog-be/src/main/java/org/openecomp/sdc/be/components/merge/instance/ComponentInstanceInterfacesMerge.java2
-rw-r--r--catalog-ui/src/app/ng2/pages/composition/interface-operatons/operation-creator/interface-operation-handler.component.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/merge/instance/ComponentInstanceInterfacesMerge.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/merge/instance/ComponentInstanceInterfacesMerge.java
index ecbeb21fea..cf5395d0ed 100644
--- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/merge/instance/ComponentInstanceInterfacesMerge.java
+++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/merge/instance/ComponentInstanceInterfacesMerge.java
@@ -77,7 +77,7 @@ public class ComponentInstanceInterfacesMerge implements ComponentInstanceMergeI
}
currentComponent.getComponentInstancesInterfaces().get(instanceId).forEach(
newInterfaceDef -> {
- Map<String, Operation> newInterfaceDefOperationMap = new HashMap<>();
+ Map<String, Operation> newInterfaceDefOperationMap = newInterfaceDef.getOperationsMap();
newInterfaceDef.getOperationsMap().forEach(
(newOperationDefKey, newOperationDefKeyValue) -> prevInstanceInterfaces.stream()
.filter(in -> in.getUniqueId().equals(newInterfaceDef.getUniqueId())).forEach(
diff --git a/catalog-ui/src/app/ng2/pages/composition/interface-operatons/operation-creator/interface-operation-handler.component.ts b/catalog-ui/src/app/ng2/pages/composition/interface-operatons/operation-creator/interface-operation-handler.component.ts
index c7fcea069f..a1f72ac46e 100644
--- a/catalog-ui/src/app/ng2/pages/composition/interface-operatons/operation-creator/interface-operation-handler.component.ts
+++ b/catalog-ui/src/app/ng2/pages/composition/interface-operatons/operation-creator/interface-operation-handler.component.ts
@@ -197,8 +197,8 @@ export class InterfaceOperationHandlerComponent {
this.toscaArtifactTypeSelected = undefined;
this.artifactVersion = undefined;
if (this.operationToUpdate.implementation.artifactType) {
- this.operationToUpdate.implementation.artifactName = '';
this.operationToUpdate.implementation.artifactVersion = '';
+ this.operationToUpdate.implementation.artifactType = '';
}
this.toscaArtifactTypeProperties = undefined;
this.artifactTypeProperties = undefined;