Browse Source

fix: new project didnt update treeview

Martin Kunz 10 months ago
parent
commit
c1ef3b9335
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/store.ts

+ 1 - 1
src/store.ts

@@ -16,7 +16,7 @@ export const useStore = defineStore('user', {
   actions: {
     setAddressSpace(as: AddressSpace) {
       this.addressSpace=as;
-      this.rootNode=as.findNode("ns=0;i=84")||null;
+      this.rootNode=this.addressSpace.findNode("ns=0;i=84")||null;
       this.selectedNode=null;
     },
     addNodeset(nodeset: UANodeSet) {