fix bug [SDC-2336] - Service dependency - Can't select sibling property when sibling...
[sdc.git] / catalog-ui / src / app / ng2 / pages / service-dependencies-editor / service-dependencies-editor.component.ts
index db5e7a9..cdef018 100644 (file)
@@ -170,7 +170,7 @@ export class ServiceDependenciesEditorComponent {
             return;
         }
         this.listOfValuesToAssign =  this.listOfSourceOptions.reduce((result, op:PropertyBEModel) => {
-            if(op.type === this.selectedPropertyObj.type && op.schemaType === this.selectedPropertyObj.schemaType) {
+            if (op.type === this.selectedPropertyObj.type && (!op.schemaType || op.schemaType === this.selectedPropertyObj.schemaType)) {
                 result.push(new DropdownValue(op.name, op.name));
             }
             return result;