Fix elk import

This commit is contained in:
Sidharth Vinod
2023-02-16 15:00:35 +05:30
parent b8315cec6c
commit c815c84e1c
2 changed files with 2 additions and 5 deletions

View File

@@ -766,7 +766,7 @@ const insertChildren = (nodeArray, parentLookupDb) => {
export const draw = async function (text, id, _version, diagObj) {
if (!elk) {
const ELK = await import('elkjs/lib/elk.bundled.js');
const ELK = (await import('elkjs/lib/elk.bundled.js')).default;
elk = new ELK();
}
// Add temporary render element