mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
regenerate ids when needed via programmatic api, this makes sure for mermaid diagrams ids are regenerated
This commit is contained in:
parent
10a5d18fa2
commit
b47d46699a
2 changed files with 31 additions and 4 deletions
|
@ -140,7 +140,7 @@ const MermaidToExcalidraw = ({
|
|||
mermaidToExcalidrawLib.current.graphToExcalidraw(mermaidGraphData);
|
||||
|
||||
data.current = {
|
||||
elements: convertToExcalidrawElements(elements),
|
||||
elements: convertToExcalidrawElements(elements, true),
|
||||
files,
|
||||
};
|
||||
const parent = canvasNode.parentElement!;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue