From afb69a3bb076436e56c02cf423c17eaf57bea2ee Mon Sep 17 00:00:00 2001 From: Knut Sveidqvist Date: Fri, 9 Aug 2024 15:14:48 +0200 Subject: [PATCH] #5237 Async fix for clusters --- .../mermaid/src/rendering-util/rendering-elements/clusters.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/mermaid/src/rendering-util/rendering-elements/clusters.js b/packages/mermaid/src/rendering-util/rendering-elements/clusters.js index 85f9674c9c..394a89cdda 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/clusters.js +++ b/packages/mermaid/src/rendering-util/rendering-elements/clusters.js @@ -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; };