diff options
| author | Alon Levy <alon@pobox.com> | 2014-09-30 13:17:04 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-09-30 13:17:06 +0300 |
| commit | 085f8361d903a5c9dea23195201622290d979eb1 (patch) | |
| tree | 3f9083120174432402df4feab391d06541767020 /scripts | |
| parent | 5a61f8fc39e0fc2b9ef75cd826636bdac7a427ce (diff) | |
rhizicore: since s/text/name/ fix load
Loading an old save (with no 'name' in nodes) triggers this path.
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/rhizicore.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js index 35398d12..ca1265fa 100644 --- a/scripts/rhizicore.js +++ b/scripts/rhizicore.js @@ -599,6 +599,9 @@ function myGraph(el) { node.select('g.node text') .text(function(d) { + if (!d.name) { + return ""; + } if (d.state === "temp" || d.state === 'chosen') { return d.name; } else { |
