Fix for broken gitGraph for Mermaid Live Editor

This commit is contained in:
ashishj
2022-04-21 18:16:22 +02:00
parent 473aced449
commit 8966639e65

View File

@@ -80,9 +80,9 @@ function parse(text) {
log.debug('Type ' + graphType); log.debug('Type ' + graphType);
switch (graphType) { switch (graphType) {
case 'gitGraph': case 'gitGraph':
gitGraphAst.clear();
parser = gitGraphParser; parser = gitGraphParser;
parser.parser.yy = gitGraphAst; parser.parser.yy = gitGraphAst;
parser.parser.yy.clear();
break; break;
case 'flowchart': case 'flowchart':
flowDb.clear(); flowDb.clear();