mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-25 18:30:10 +02:00
fix: fix if statment logic checks if parser
is not undefined
This commit is contained in:
@@ -50,7 +50,7 @@ export class Diagram {
|
||||
this.parser.parse = (text: string) =>
|
||||
originalParse(cleanupComments(extractFrontMatter(text, this.db)));
|
||||
|
||||
if (this.parser.parser?.yy) {
|
||||
if (this.parser.parser !== undefined) {
|
||||
this.parser.parser.yy = this.db;
|
||||
}
|
||||
this.init = diagram.init;
|
||||
|
Reference in New Issue
Block a user