Open n3m3sis00 opened 4 years ago
Looks like the crash is from line 88
.text(d => d.data.name.replace(/_/g, ' '))
A simple fix would be to make it
.text(d => (d.data.name||'').replace(/_/g, ' '))
Note, making the code typescript can help fix our assumptions about undefined states. If you have interest in making the code typescript we can look into this
Create a tree validation logic and show error for invalid tree.