summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-08-13 14:53:38 +0300
committerAlon Levy <alon@pobox.com>2015-08-13 14:56:24 +0300
commit4dc93920b3e1acb69a89be4245bc5907dc51df9b (patch)
treebd07ed88183c6430590b02cf2928ee60b6561bc6
parent0113f54e5162d4501f9b690418dc7cea10c5b0d9 (diff)
#612: fix - node displayed in edit graph view after submit
-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 bcd04b91..6e068891 100644
--- a/src/client/view/graph_view.js
+++ b/src/client/view/graph_view.js
@@ -234,7 +234,7 @@ function GraphView(spec) {
}
}
}
- if (nodes.length == 0 || (!temporary && !relayout && have_position === 0)) {
+ if (!temporary && (nodes.length == 0 || (!relayout && have_position === 0))) {
// avoid recursion due to layout triggering sending of new positions to db, resulting in a new diff update
return;
}