From a10821ffc7796da6bf0b6f5c4d0f8fb1d7da0456 Mon Sep 17 00:00:00 2001 From: Reda Al Sulais Date: Sat, 2 Sep 2023 16:35:35 +0300 Subject: [PATCH] chore: remove sankey links map --- packages/mermaid/src/diagrams/sankey/sankeyRenderer.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/packages/mermaid/src/diagrams/sankey/sankeyRenderer.ts b/packages/mermaid/src/diagrams/sankey/sankeyRenderer.ts index e926c58c61..d8947f9824 100644 --- a/packages/mermaid/src/diagrams/sankey/sankeyRenderer.ts +++ b/packages/mermaid/src/diagrams/sankey/sankeyRenderer.ts @@ -16,7 +16,6 @@ import type { MermaidConfig, SankeyDiagramConfig, SankeyNodeAlignment } from '.. import type { SankeyDB, SankeyGraph, - SankeyLink, SankeyLinkData, SankeyLinkDatum, SankeyLinkOverride, @@ -65,13 +64,7 @@ const createSankeyGraph = (db: SankeyDB, config: Required) name: node, }; }), - links: db.getLinks().map((link: SankeyLink) => { - return { - source: link.source, - target: link.target, - value: link.value, - }; - }), + links: db.getLinks(), }); const nodeAlign = alignmentsMap[config.nodeAlignment];