summaryrefslogtreecommitdiffstats
path: root/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/action-attributes/action-attributes.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/action-attributes/action-attributes.component.ts')
-rw-r--r--cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/action-attributes/action-attributes.component.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/action-attributes/action-attributes.component.ts b/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/action-attributes/action-attributes.component.ts
index 6873f8948..f33965044 100644
--- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/action-attributes/action-attributes.component.ts
+++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/action-attributes/action-attributes.component.ts
@@ -120,7 +120,7 @@ export class ActionAttributesComponent implements OnInit {
console.log(input);
if (input && input.type && input.name) {
const insertedInputActionAttribute = Object.assign({}, input);
- if (!this.newInputs.includes(insertedInputActionAttribute)) {
+ if (!this.newInputs.some(obj => obj.name === input.name)) {
this.newInputs.push(insertedInputActionAttribute);
}
}
@@ -178,6 +178,8 @@ export class ActionAttributesComponent implements OnInit {
this.outputs.push(output);
}
});
+ this.newInputs = [];
+ this.newOutputs = [];
}
private getValue() {