mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 14:59:53 +02:00
Update packages/mermaid/src/diagrams/pie/pieParser.ts
Co-authored-by: Sidharth Vinod <sidharthv96@gmail.com>
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user