fix: [eventGraph] catch empty node selection if no underlying node is

there
pull/3449/head
Sami Mokaddem 2018-06-22 15:28:58 +00:00
parent d5f97941ea
commit f26f9a623f
1 changed files with 3 additions and 1 deletions

View File

@ -127,7 +127,9 @@ class EventGraph {
this.network.on("oncontext", function (event) {
var node = that.network.getNodeAt({x: event.pointer.DOM.x, y: event.pointer.DOM.y});
that.network.selectNodes([node]);
if (node !== undefined) {
that.network.selectNodes([node]);
}
});
}