mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-20 15:59:51 +02:00
fix git graph not clearing
This commit is contained in:
@@ -302,6 +302,7 @@ export const draw = function(txt, id, ver) {
|
|||||||
try {
|
try {
|
||||||
const parser = gitGraphParser.parser;
|
const parser = gitGraphParser.parser;
|
||||||
parser.yy = db;
|
parser.yy = db;
|
||||||
|
parser.yy.clear();
|
||||||
|
|
||||||
logger.debug('in gitgraph renderer', txt + '\n', 'id:', id, ver);
|
logger.debug('in gitgraph renderer', txt + '\n', 'id:', id, ver);
|
||||||
// Parse the graph definition
|
// Parse the graph definition
|
||||||
|
Reference in New Issue
Block a user