Martin Kunz 1 year ago
parent
commit
1226a7103b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/ua/UABaseNode.ts

+ 2 - 2
src/ua/UABaseNode.ts

@@ -1,5 +1,5 @@
 import type { NamespaceTable } from "./NameSpaceTable";
-import { NodeId } from "./NodeId";
+import { coerceNodeId, NodeId } from "./NodeId";
 import { UAReference } from "./UAReference";
 import { assert } from "@/util/assert";
 import { XMLElem, type IToXML } from "@/util/XmlElem";
@@ -56,7 +56,7 @@ export class UABaseNode implements IToXML{
         for(const xmlref of xmlReferences.Reference) {
             references.push(UAReference.fromXML(xmlref));
         }
-        const ua=new UABaseNode(NodeId.coerceNodeId(xmlObject['@_NodeId']), xmlObject['@_BrowseName'], xmlObject['DisplayName'], references);
+        const ua=new UABaseNode(coerceNodeId(xmlObject['@_NodeId']), xmlObject['@_BrowseName'], xmlObject['DisplayName'], references);
         return ua;
     }