From 9bc8df46bde6d8788a3c76152d4fb674dfcb7564 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Thu, 13 Aug 2015 15:05:37 +0300 Subject: client/view/graph_view: do not avoid 0 node update, required for doc switching. fix #613 --- src/client/view/graph_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.3.1