Martin Kunz 1 rok temu
rodzic
commit
1226a7103b
1 zmienionych plików z 2 dodań i 2 usunięć
  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;
     }