I have a custom data which is updated at api side.
After I get the latest data, I want to update annotation, and addInfo filed for my custom data
nodes[index].addInfo.customObject already stores an old data which I want to rewrite
function editNode(data) {
let index = this.diagramInstance.nodes.map(e => e.id).indexOf(this.currentNodeId);
// @ts-ignore
this.diagramInstance.nodes[index].annotations[0].content = data.title;
this.diagramInstance.nodes[index].addInfo.customObject = data;
// @ts-ignore
this.diagramInstance.dataBind();
}
Finally, annotation is updated, addInfo - not.
How to update addInfo of node at runtime?