Small changes and fixes

This commit is contained in:
AlexandruPopovici
2022-08-29 18:33:22 +03:00
parent 2e0cb521f8
commit 1d38cd6db2
4 changed files with 23 additions and 26 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ class DataTreeInternal implements DataTree {
public constructor() {
this.tree = new TreeModel()
this.root = this.tree.parse({ id: 'MOTHERSHIP' })
this.root = this.tree.parse({ guid: 'MOTHERSHIP' })
}
public findAll(predicate: ObjectPredicate): SpeckleObject[] {
return this.root
@@ -53,7 +53,7 @@ export class DataTreeBuilder {
}
parent = dataTree.root.first((localNode) => {
return localNode.model.id === node.parent.model.id
return localNode.model.guid === node.parent.model.id
})
const _node: TreeNode = WorldTree.getInstance().parse({