fix relation definition in dialog

pull/255/head
azivner 2018-08-20 10:04:26 +07:00
parent 99d81059d0
commit 1938c317c3
1 changed files with 2 additions and 1 deletions

@ -67,7 +67,8 @@ function AttributesModel() {
multiplicityType: "singlevalue",
isPromoted: true
};
attr.relationDefinition = attr.type === ('relation-definition' && attr.value) ? attr.value : {
attr.relationDefinition = (attr.type === 'relation-definition' && attr.value) ? attr.value : {
multiplicityType: "singlevalue",
isPromoted: true
};