mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-10 19:09:44 +02:00
#5237 Async fix for clusters
This commit is contained in:
@@ -359,9 +359,9 @@ const shapes = {
|
||||
|
||||
let clusterElems = new Map();
|
||||
|
||||
export const insertCluster = (elem, node) => {
|
||||
export const insertCluster = async (elem, node) => {
|
||||
const shape = node.shape || 'rect';
|
||||
const cluster = shapes[shape](elem, node);
|
||||
const cluster = await shapes[shape](elem, node);
|
||||
clusterElems.set(node.id, cluster);
|
||||
return cluster;
|
||||
};
|
||||
|
Reference in New Issue
Block a user