aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--catalog-ui/src/app/ng2/pages/interface-operation/operation-creator/operation-creator.component.ts8
-rw-r--r--catalog-ui/src/app/ng2/pages/interface-operation/operation-creator/param-row/param-row.component.ts5
2 files changed, 8 insertions, 5 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 e27c783620..a304f1a30d 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
@@ -251,11 +251,15 @@ export class OperationCreatorComponent {
let valid = true;
if (this.currentTab === this.TYPE_INPUT) {
_.forEach(this.inputParameters, param => {
- if (!param.name || !param.property) valid = false;
+ if (!param.name || !param.property) {
+ valid = false;
+ }
});
} else {
_.forEach(this.outputParameters, param => {
- if (!param.name || !param.type) valid = false;
+ if (!param.name || !param.type) {
+ valid = false;
+ }
});
}
return valid;
diff --git a/catalog-ui/src/app/ng2/pages/interface-operation/operation-creator/param-row/param-row.component.ts b/catalog-ui/src/app/ng2/pages/interface-operation/operation-creator/param-row/param-row.component.ts
index 9bedfa7031..a12425d6e9 100644
--- a/catalog-ui/src/app/ng2/pages/interface-operation/operation-creator/param-row/param-row.component.ts
+++ b/catalog-ui/src/app/ng2/pages/interface-operation/operation-creator/param-row/param-row.component.ts
@@ -50,9 +50,8 @@ export class ParamRowComponent {
_.toArray(dataTypes),
(type: any) => type.name === prop.type
);
- if (!type.properties) {
- flattenedProps.push(prop);
- } else {
+ flattenedProps.push(prop);
+ if (type.properties) {
_.forEach(type.properties, subType => {
if (this.isTypePrimitive(subType.type)) {
flattenedProps.push({