Skip to content

TagSpaces is an offline, open source, document manager with tagging support

code optimization

uggrockf4b753fde457
diff --git a/data/ext/perspectiveGraph/mindmap.js b/data/ext/perspectiveGraph/mindmap.js
index c08bff039..eef3e1c4a 100644
--- a/data/ext/perspectiveGraph/mindmap.js
+++ b/data/ext/perspectiveGraph/mindmap.js
@@ -137,15 +137,14 @@ define(function(require, exports, module) {
// Toggle children.
function toggle(d) {
- if(d.children === undefined || d.children === null) { // || d.children.length < 1
- TSCORE.FileOpener.openFile(d.path);
- }
if (d.children) {
d._children = d.children;
d.children = null;
} else {
d.children = d._children;
d._children = null;
+
+ TSCORE.FileOpener.openFile(d.path);
}
}
};