Merge pull request #3833 from mermaid-js/3832_mindmaps_single_node

#3882 fix for issues with mindmaps  with only a single node
This commit is contained in:
pbrolin47 2022-11-21 13:39:16 +01:00 committed by GitHub
commit 32db43069d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

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({