mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-22 16:59:48 +02:00
#2017 Fix for clearing diagram data (helpful for live editor)
This commit is contained in:
@@ -323,6 +323,7 @@ const elementString = str => {
|
||||
|
||||
export const draw = (text, id) => {
|
||||
parser.yy = requirementDb;
|
||||
parser.yy.clear();
|
||||
parser.parse(text);
|
||||
|
||||
const svg = select(`[id='${id}']`);
|
||||
|
Reference in New Issue
Block a user