fix(Diagram): C4C diagram does not have a db.clear method

This commit is contained in:
Harman Goei 2022-08-09 22:22:40 -07:00
parent a5aef9e330
commit 6e5eeb7215
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ class Diagram {
// console.log('this.type', this.type, diagrams[this.type]);
// Setup diagram
this.db = diagrams[this.type].db;
this.db.clear();
this.db.clear?.();
this.renderer = diagrams[this.type].renderer;
this.parser = diagrams[this.type].parser;