Skip to content

Commit

Permalink
#5237 Async fix for clusters
Browse files Browse the repository at this point in the history
  • Loading branch information
knsv committed Aug 9, 2024
1 parent 95fb824 commit afb69a3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit afb69a3

Please sign in to comment.