From 45189bf6fa7076ef033dede6cc1e6a4e45771de9 Mon Sep 17 00:00:00 2001 From: Reda Al Sulais Date: Sat, 27 Jan 2024 20:57:05 +0300 Subject: [PATCH] make pie parser async --- packages/mermaid/src/diagrams/pie/pieParser.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/mermaid/src/diagrams/pie/pieParser.ts b/packages/mermaid/src/diagrams/pie/pieParser.ts index a958089ba7..fbdc603d60 100644 --- a/packages/mermaid/src/diagrams/pie/pieParser.ts +++ b/packages/mermaid/src/diagrams/pie/pieParser.ts @@ -13,8 +13,8 @@ const populateDb = (ast: Pie, db: PieDB) => { }; export const parser: ParserDefinition = { - parse: (input: string): void => { - const ast: Pie = parse('pie', input); + parse: async (input: string): Promise => { + const ast: Pie = await parse('pie', input); log.debug(ast); populateDb(ast, db); },