mike-goodwin/owasp-threat-dragon-core

Indexing of duplicated diagrams out of step

Closed this issue · 1 comments

This is a severe bug and should be fixed as soon as possible.
Say there are 3 diagrams, ids 0, 1, 2
delete middle diagram to get ids 0, 2
then clicking on right hand diagram does not find id 1, and 'loading ...' indefinitely
duplicate new diagram will result in ids 0, 2, 1
then clicking on middle diagram will edit id 1, not 2

Attached file shows this problem: test-ids.json.zip
Created by adding four diagrams, and then deleting the second one