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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

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