summaryrefslogtreecommitdiff
path: root/src/client/model
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/model')
-rw-r--r--src/client/model/graph.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/model/graph.js b/src/client/model/graph.js
index a1d9886f..609c846c 100644
--- a/src/client/model/graph.js
+++ b/src/client/model/graph.js
@@ -62,6 +62,9 @@ function Graph() {
if (l.target === undefined) {
l.target = l.__dst;
}
+ if (l.name == undefined) {
+ l.name = 'is'; // cannot have a zero length name, using name as label in neo4j
+ }
if (l.__type === undefined) {
l.__type = l.name;
}