Hi!
I'm experimenting with projectModel.applyChangeset to update the project model, and I'm having trouble applying changes to a tree store (resourceStore with tree set to true to be precise).
Here's a small example of what I'm trying to do. It properly adds the root node to the store, but not the children. Doing projectModel.resources = resourceData
works perfectly, and I haven't found anything in the documentation saying I need to do anything in particular with children. Are you seeing any obvious issues?
Thanks!
projectModel.applyChangeset({
"resources": {
"added": [
{
"id": "36473c44-7cf2-11eb-a32d-861b18b6aec9",
"name": "Napo",
"eventColor": "#FFEB3B",
"isParent": true,
"expanded": true,
"children": [
{
"id": "resource-task-row-36473c44-7cf2-11eb-a32d-861b18b6aec9",
"name": "task",
"eventColor": "#FFEB3B",
"groupTimelineBy": "default",
"subtitle": "",
"isChild": true,
"parentId": "36473c44-7cf2-11eb-a32d-861b18b6aec9"
}
],
}
]
}
})