summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-09-30 13:17:04 +0300
committerAlon Levy <alon@pobox.com>2014-09-30 13:17:06 +0300
commit085f8361d903a5c9dea23195201622290d979eb1 (patch)
tree3f9083120174432402df4feab391d06541767020 /scripts
parent5a61f8fc39e0fc2b9ef75cd826636bdac7a427ce (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.js3
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 {