mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-19 12:14:07 +01:00
Fix fir tests
This commit is contained in:
@@ -79,8 +79,9 @@ function parse(text, dia) {
|
||||
try {
|
||||
text = text + '\n';
|
||||
const diag = dia ? dia : new Diagram(text);
|
||||
diag.db.clear();
|
||||
const cnf = configApi.getConfig();
|
||||
let parser;
|
||||
let parser = diag.parser;
|
||||
|
||||
log.debug('Type ' + diag.type);
|
||||
parser.parser.yy.graphType = diag.type;
|
||||
|
||||
Reference in New Issue
Block a user