pycodestyle icon indicating copy to clipboard operation
pycodestyle copied to clipboard

New node creation fails after importing diagram

Open sagarwal88 opened this issue 2 years ago • 0 comments

Hello.

I am new to Svelvet and was exploring some features. On this page in documentation I am importing the below JSON.

{"nodes":[{"id":"1","width":175,"height":40,"position":{"x":50,"y":50},"data":{"label":"Input Node"},"bgColor":"white","borderColor":"black","textColor":"","borderRadius":0,"image":false,"src":"","childNodes":[],"customClassName":""},{"id":"2","width":175,"height":40,"position":{"x":-193,"y":-72},"data":{"label":"Input Node"},"bgColor":"white","borderColor":"black","textColor":"","borderRadius":0,"image":false,"src":"","childNodes":[],"customClassName":""}],"edges":[{"id":"8g9wy","label":"","type":"bezier","labelBgColor":"black","labelTextColor":"black","edgeColor":"black","animate":false,"noHandle":true,"arrow":false,"source":"1","target":"2"}]}

Once imported I want to create a new node by dragging an anchor but it doesn't work. The temporary edge just hangs there and the console show this error - "Uncaught there should only be zero or one temporary edge at any given time".

This is reproducible with any flow diagram we draw, export and then import back.

sagarwal88 avatar Mar 26 '23 11:03 sagarwal88