Fix issue where data was not being set in the db after parsing.

This commit is contained in:
saurabhg772244
2025-02-04 16:45:45 +05:30
parent a0e5408850
commit 56d66cdabc
2 changed files with 1 additions and 1 deletions

View File

@@ -130,6 +130,7 @@ export class StateDB {
log.info('Setting root doc', o);
// rootDoc = { id: 'root', doc: o };
this.rootDoc = o;
this.extract(o);
}
getRootDoc() {

View File

@@ -36,7 +36,6 @@ export const getClasses = function (
text: string,
diagramObj: any
): Map<string, DiagramStyleClassDef> {
diagramObj.db.extract(diagramObj.db.getRootDocV2());
return diagramObj.db.getClasses();
};