summaryrefslogtreecommitdiff
path: root/src/client/view
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-08-13 15:05:37 +0300
committerAlon Levy <alon@pobox.com>2015-08-13 15:05:37 +0300
commit9bc8df46bde6d8788a3c76152d4fb674dfcb7564 (patch)
treece011974490ed7f4f3390c83f455125330af0d89 /src/client/view
parent4dc93920b3e1acb69a89be4245bc5907dc51df9b (diff)
client/view/graph_view: do not avoid 0 node update, required for doc switching. fix #613
Diffstat (limited to 'src/client/view')
-rw-r--r--src/client/view/graph_view.js2
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;
}