Skip to content
Snippets Groups Projects
Commit b3b5f826 authored by Valentin Perrelle's avatar Valentin Perrelle
Browse files

[ivette] Dive: fix a bug where two request would have been issued when...

[ivette] Dive: fix a bug where two request would have been issued when clicking a single time on a node
parent 370d6df9
No related branches found
No related tags found
No related merge requests found
...@@ -436,12 +436,13 @@ class Dive { ...@@ -436,12 +436,13 @@ class Dive {
} }
clickNode(node: Cytoscape.NodeSingular): void { clickNode(node: Cytoscape.NodeSingular): void {
this.selectNode(node);
this.explore(node); this.explore(node);
const writes = node.data()?.writes; const writes = node.data()?.writes;
if (writes) if (writes)
this.onSelect?.(writes); this.onSelect?.(writes);
this.selectNode(node);
/* Cytoscape automatically selects the node clicked, and unselects all other /* Cytoscape automatically selects the node clicked, and unselects all other
nodes and edges. As we want some incoming edges to remain selected, we nodes and edges. As we want some incoming edges to remain selected, we
make the node unselectable, preventing cytoscape to select it. */ make the node unselectable, preventing cytoscape to select it. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment