From 085f8361d903a5c9dea23195201622290d979eb1 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Tue, 30 Sep 2014 13:17:04 +0300 Subject: rhizicore: since s/text/name/ fix load Loading an old save (with no 'name' in nodes) triggers this path. --- scripts/rhizicore.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts') 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 { -- cgit v1.3.1