summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/model/graph.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/model/graph.js b/src/client/model/graph.js
index 609c846c..c3e5209b 100644
--- a/src/client/model/graph.js
+++ b/src/client/model/graph.js
@@ -610,7 +610,8 @@ function Graph() {
this.findCoordinates = function(id) {
var n = find_node__by_id(id);
- if ((index !== undefined)) {
+
+ if (n !== undefined) {
$('.typeselection').css('top', n.y - 90);
$('.typeselection').css('left', n.x - 230);
}