|
@@ -78,10 +78,10 @@ function getInstanceDecl(nid="ns=0;i=58"){
|
|
let mr = "";
|
|
let mr = "";
|
|
if(item.toNode.nodeClass == "Object"){
|
|
if(item.toNode.nodeClass == "Object"){
|
|
let i = item.toNode as UAObject;
|
|
let i = item.toNode as UAObject;
|
|
- mr = i.getModellingRule();
|
|
|
|
|
|
+ mr = i.getModellingRule()||"";
|
|
}else if(item.toNode.nodeClass == "Variable"){
|
|
}else if(item.toNode.nodeClass == "Variable"){
|
|
let i = item.toNode as UAVariable;
|
|
let i = item.toNode as UAVariable;
|
|
- mr = i.getModellingRule();
|
|
|
|
|
|
+ mr = i.getModellingRule()||"";
|
|
}
|
|
}
|
|
if(mr == "Mandatory"){
|
|
if(mr == "Mandatory"){
|
|
const newItem = { ref: item, checked: true, modellingRule:mr };
|
|
const newItem = { ref: item, checked: true, modellingRule:mr };
|