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