diff options
| author | Alon Levy <alon@pobox.com> | 2015-08-13 15:05:37 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-08-13 15:05:37 +0300 |
| commit | 9bc8df46bde6d8788a3c76152d4fb674dfcb7564 (patch) | |
| tree | ce011974490ed7f4f3390c83f455125330af0d89 /src/client | |
| parent | 4dc93920b3e1acb69a89be4245bc5907dc51df9b (diff) | |
client/view/graph_view: do not avoid 0 node update, required for doc switching. fix #613
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/view/graph_view.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js index 6e068891..93e774aa 100644 --- a/src/client/view/graph_view.js +++ b/src/client/view/graph_view.js @@ -234,7 +234,7 @@ function GraphView(spec) { } } } - if (!temporary && (nodes.length == 0 || (!relayout && have_position === 0))) { + if (!temporary && !relayout && have_position === 0) { // avoid recursion due to layout triggering sending of new positions to db, resulting in a new diff update return; } |
