mirror of https://github.com/MISP/MISP
fix: [eventGraph] catch empty node selection if no underlying node is
therepull/3449/head
parent
d5f97941ea
commit
f26f9a623f
|
@ -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]);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue