From 5469a7eb71bda6cb66a1dea6624c5483fbf31f6f Mon Sep 17 00:00:00 2001 From: Reda Al Sulais Date: Mon, 28 Aug 2023 12:11:21 +0300 Subject: [PATCH] Update packages/mermaid/src/diagrams/pie/pieParser.ts Co-authored-by: Sidharth Vinod --- packages/mermaid/src/diagrams/pie/pieParser.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/mermaid/src/diagrams/pie/pieParser.ts b/packages/mermaid/src/diagrams/pie/pieParser.ts index 5832e3a156..ac978a5a97 100644 --- a/packages/mermaid/src/diagrams/pie/pieParser.ts +++ b/packages/mermaid/src/diagrams/pie/pieParser.ts @@ -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); }); }