mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
fix: fix if statment logic checks if parser
is not undefined
This commit is contained in:
parent
984a0e6d06
commit
205360c109
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user