Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 6975

node.updateRelationshipsFromData does not work

$
0
0

@Dominic.Lerbs wrote:

Hi,

following data is bound to a node:
image

I pass the node.data object to another component, which deletes one item from the types array. Now the item in types array with index 3 is deleted (“erp”).
image

I execute

...
node.updateRelationshipsFromData();
diagram.commitTransaction("delete type");

But the panel of that item is still there (still 5 items there, althought “ERP-System” was deleted):
image

The following works (at least for the panel), but shouldnt updateRelationshipsFromData do the same job?
node.data = JSON.parse(JSON.stringify(typeGroup));

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6975

Trending Articles