Update packages/mermaid/src/diagrams/pie/pieParser.ts
Co-authored-by: Sidharth Vinod <sidharthv96@gmail.com>
This commit is contained in:
parent
23fc7c2c96
commit
5469a7eb71
|
@ -11,8 +11,7 @@ function populateDb(ast: Pie, db: PieDB) {
|
|||
populateCommonDb(ast, db);
|
||||
db.setShowData(ast.showData);
|
||||
ast.sections.map((section: PieSection) => {
|
||||
const { label, value } = section;
|
||||
db.addSection({ label, value });
|
||||
db.addSection(section);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue