diff options
| author | Alon Levy <alon@pobox.com> | 2014-12-28 15:48:32 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-12-28 15:48:32 +0200 |
| commit | b2c8c309e405a62653ace14608def31a61a0dab6 (patch) | |
| tree | 705916060cf8cf4ee9bc3d784d11090a356dac83 /src/client/model/graph.js | |
| parent | 750e7c95cb3069ed352d62583fe48784064905a3 (diff) | |
Fixes #232 - #x #y raises error and doesn't get committed
Diffstat (limited to 'src/client/model/graph.js')
| -rw-r--r-- | src/client/model/graph.js | 3 |
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; } |
