diff options
author | Eltanany Shaaban <shaaban.eltanany.ext@orange.com> | 2021-02-02 12:56:39 +0200 |
---|---|---|
committer | Eltanany Shaaban <shaaban.eltanany.ext@orange.com> | 2021-02-02 13:14:04 +0200 |
commit | 7ecb41358ade47373b28df536dbda709e1a8a45e (patch) | |
tree | 7f9c6a6ae0f1f0c7a204c037cac926e734195fe0 /cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/action-attributes/action-attributes.component.ts | |
parent | b62aabac76abe92f04e0991157292c276d3d9177 (diff) |
fixing input and output action
Issue-ID: CCSDK-2779
Issue-ID: CCSDK-3025
Signed-off-by: Eltanany Shaaban <shaaban.eltanany.ext@orange.com>
Change-Id: Ie9a89b5312a173925d44b9868d796775912304a8
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.ts | 4 |
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() { |