sankey icon indicating copy to clipboard operation
sankey copied to clipboard

empty node row renders the "save" code invalid due to comma

Open sfirke opened this issue 6 years ago • 1 comments

This web app is wonderful and I've used it extensively this week. Thanks for creating and maintaining this.

I stumbled into a problem that took a while to pin down. Say you click "add new link" but then realize you don't need it. There's no way to get rid of that blank box row, but it will add a comma to the end of the list of links, e.g.,

...},{"source":13,"target":14,"value":12},]}

Which will cause the subsequent loading of that exported code to silently fail.

Could the export check for blank rows in the link list and ignore them?

sfirke avatar Jun 07 '18 01:06 sfirke

Hey @sfirke - will take a look at this in a bit!

csaladenes avatar Sep 27 '18 13:09 csaladenes