I’m working on a project where nodes haves ports to which a link can be attached. All is working well but i’m experiencing a problem when adding groups.
i can create a group just fine, but if i save it, and then reload it (by redrawing the model) i get an error:
List.removeAt:i is not in the range 0 <= i < length: 1
strangely enough, if i remove these lines of code:
diagram.model.linkFromPortIdProperty = 'from_port'; diagram.model.linkToPortIdProperty = 'to_port';
It renders just fine (but off course then the links aren’t linked as they should)
I also have textblocks and regular shapes (which don’t have the ports) and they’re giving me no problems.