diff options
| author | Alon Levy <alon@pobox.com> | 2015-08-09 09:17:26 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-08-09 09:17:26 +0300 |
| commit | ec70a92de623a57cef25482a91ffde72472efbfe (patch) | |
| tree | 394cec0f7890d2baa8a221113fef7fa93bb7b722 /src/client/view/graph_view.js | |
| parent | f729cf729f46998e86da025f8829a272a5330b0c (diff) | |
client/view/graph_view: fix addition of a node on <enter> with new position loading
Diffstat (limited to 'src/client/view/graph_view.js')
| -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 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; } |
