Skip to content

Commit

Permalink
#3882 fix for issues with mindmaps with only a single node
Browse files Browse the repository at this point in the history
  • Loading branch information
knsv committed Nov 21, 2022
1 parent 050574f commit 564414e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/mermaid-mindmap/src/mindmapRenderer.js
Original file line number Diff line number Diff line change
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 564414e

Please sign in to comment.