summaryrefslogtreecommitdiff
path: root/src/client/view
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-08-09 09:17:26 +0300
committerAlon Levy <alon@pobox.com>2015-08-09 09:17:26 +0300
commitec70a92de623a57cef25482a91ffde72472efbfe (patch)
tree394cec0f7890d2baa8a221113fef7fa93bb7b722 /src/client/view
parentf729cf729f46998e86da025f8829a272a5330b0c (diff)
client/view/graph_view: fix addition of a node on <enter> with new position loading
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 9f66757c..9b0e61a6 100644
--- a/src/client/view/graph_view.js
+++ b/src/client/view/graph_view.js
@@ -234,7 +234,7 @@ function GraphView(spec) {
}
}
}
- if (!temporary && 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;
}