Update packages/mermaid/src/diagrams/pie/pieParser.ts

Co-authored-by: Sidharth Vinod <sidharthv96@gmail.com>
This commit is contained in:
Reda Al Sulais
2023-08-28 12:11:21 +03:00
committed by GitHub
parent 23fc7c2c96
commit 5469a7eb71

View File

@@ -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);
});
}