persist mermaid data to storage

This commit is contained in:
Aakansha Doshi 2023-08-24 12:29:26 +05:30
parent f85f890b25
commit 6518e05cab
3 changed files with 39 additions and 8 deletions

View file

@ -1178,10 +1178,12 @@ class App extends React.Component<AppProps, AppState> {
app={this}
>
{this.props.children}
<MermaidToExcalidraw
appState={this.state}
elements={this.scene.getNonDeletedElements()}
/>
{this.state.activeTool.type === "mermaid" && (
<MermaidToExcalidraw
appState={this.state}
elements={this.scene.getNonDeletedElements()}
/>
)}
</LayerUI>
<div className="excalidraw-textEditorContainer" />