Skip to content

Commit

Permalink
Merge pull request #3833 from mermaid-js/3832_mindmaps_single_node
Browse files Browse the repository at this point in the history
#3882 fix for issues with mindmaps  with only a single node
  • Loading branch information
pbrolin47 committed Nov 21, 2022
2 parents ffb95b4 + 564414e commit 32db430
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/mermaid-mindmap/src/mindmapRenderer.js
Expand Up @@ -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({
Expand Down

0 comments on commit 32db430

Please sign in to comment.