Make sure objects are properly parented when fetching all objects

This commit is contained in:
Casper Warden
2023-11-29 17:19:23 +00:00
parent 8e6307bcde
commit efee1208d6
3 changed files with 16 additions and 3 deletions

View File

@@ -1215,6 +1215,19 @@ export class ObjectStoreLite implements IObjectStore
results.push(parent);
}
}
if (go.ParentID)
{
let objects = this.objectsByParent.get(go.ParentID)
if (!objects?.includes(localID))
{
if (objects === undefined)
{
objects = [];
}
objects.push(localID);
this.objectsByParent.set(go.ParentID, objects);
}
}
}
catch (error)
{