diff options
author | 2019-01-21 13:11:42 +0200 | |
---|---|---|
committer | 2019-01-22 09:31:23 +0000 | |
commit | a868a311efee8710f29f89c9406903f9f9b7f392 (patch) | |
tree | 3828a93d18778b7d1fd7d982a2c8ffee77d12a8d /catalog-ui/src/app/ng2/pages/interface-operation/operation-creator/operation-creator.component.ts | |
parent | 7d8c592bdd302fe59fe12b134af941c2dd6ab058 (diff) |
Null x when adding operation to empty list
Change-Id: Ib54f29049d8b576f48f8459439650c45fe1248f6
Issue-ID: SDC-2052
Signed-off-by: Arielk <Ariel.Kenan@amdocs.com>
Diffstat (limited to 'catalog-ui/src/app/ng2/pages/interface-operation/operation-creator/operation-creator.component.ts')
-rw-r--r-- | catalog-ui/src/app/ng2/pages/interface-operation/operation-creator/operation-creator.component.ts | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/catalog-ui/src/app/ng2/pages/interface-operation/operation-creator/operation-creator.component.ts b/catalog-ui/src/app/ng2/pages/interface-operation/operation-creator/operation-creator.component.ts index 7f31e99b93..e746c6d6fe 100644 --- a/catalog-ui/src/app/ng2/pages/interface-operation/operation-creator/operation-creator.component.ts +++ b/catalog-ui/src/app/ng2/pages/interface-operation/operation-creator/operation-creator.component.ts @@ -224,11 +224,12 @@ export class OperationCreatorComponent { _.map( this.interfaceTypes[this.operation.interfaceType], name => { + const curInterf = _.find( + this.interfaces, + interf => interf.type === this.operation.interfaceType + ); const existingOp = _.find( - _.find( - this.interfaces, - interf => interf.type === this.operation.interfaceType - ).operations, + curInterf && curInterf.operations || [], op => op.name === name ); const ddType = (existingOp && existingOp.uniqueId !== this.operation.uniqueId) ? 2 : 0; |