Skip to content

Commit

Permalink
Update packages/mermaid/src/diagrams/pie/pieParser.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Sidharth Vinod <[email protected]>
  • Loading branch information
Yokozuna59 and sidharthv96 authored Aug 28, 2023
1 parent 23fc7c2 commit 5469a7e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/mermaid/src/diagrams/pie/pieParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}

Expand Down

0 comments on commit 5469a7e

Please sign in to comment.