mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-15 05:19:58 +02:00
Fix issue where data was not being set in the db after parsing.
This commit is contained in:
@@ -130,6 +130,7 @@ export class StateDB {
|
|||||||
log.info('Setting root doc', o);
|
log.info('Setting root doc', o);
|
||||||
// rootDoc = { id: 'root', doc: o };
|
// rootDoc = { id: 'root', doc: o };
|
||||||
this.rootDoc = o;
|
this.rootDoc = o;
|
||||||
|
this.extract(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
getRootDoc() {
|
getRootDoc() {
|
||||||
|
@@ -36,7 +36,6 @@ export const getClasses = function (
|
|||||||
text: string,
|
text: string,
|
||||||
diagramObj: any
|
diagramObj: any
|
||||||
): Map<string, DiagramStyleClassDef> {
|
): Map<string, DiagramStyleClassDef> {
|
||||||
diagramObj.db.extract(diagramObj.db.getRootDocV2());
|
|
||||||
return diagramObj.db.getClasses();
|
return diagramObj.db.getClasses();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user