sankey
sankey copied to clipboard
empty node row renders the "save" code invalid due to comma
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?
Hey @sfirke - will take a look at this in a bit!