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

[ivette] Dive: fix typing

parent d03ef5a8
No related branches found
No related tags found
No related merge requests found
...@@ -121,12 +121,12 @@ class Dive { ...@@ -121,12 +121,12 @@ class Dive {
return commands; return commands;
} }
remove(node: Cytoscape.NodeCollection): void { remove(node: Cytoscape.NodeSingular) {
const parent = node.parent(); const parent = node.parent();
node.remove(); node.remove();
this.cy.$id(`${node.id()}-more`).remove(); this.cy.$id(`${node.id()}-more`).remove();
if (parent.nonempty() && parent.children().empty()) if (parent.nonempty() && parent.children().empty())
this.remove(parent); // Recursively remove parents this.remove(parent as Cytoscape.NodeSingular); // Recursively remove parents
} }
referenceFile(fileName: string): Cytoscape.NodeSingular { referenceFile(fileName: string): Cytoscape.NodeSingular {
......
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