#3882 fix for issues with mindmaps with only a single node

This commit is contained in:
Knut Sveidqvist
2022-11-21 13:23:25 +01:00
parent 050574f60f
commit 564414ecac

View File

@@ -92,10 +92,6 @@ function addNodes(mindmap, cy, conf, level) {
*/
function layoutMindmap(node, conf) {
return new Promise((resolve) => {
if (node.children.length === 0) {
return node;
}
// Add temporary render element
const renderEl = select('body').append('div').attr('id', 'cy').attr('style', 'display:none');
const cy = cytoscape({