Skip to content

Commit

Permalink
chore: remove sankey links map
Browse files Browse the repository at this point in the history
  • Loading branch information
Yokozuna59 committed Sep 2, 2023
1 parent 7ca02da commit a10821f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/mermaid/src/diagrams/sankey/sankeyRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import type { MermaidConfig, SankeyDiagramConfig, SankeyNodeAlignment } from '..
import type {
SankeyDB,
SankeyGraph,
SankeyLink,
SankeyLinkData,
SankeyLinkDatum,
SankeyLinkOverride,
Expand Down Expand Up @@ -65,13 +64,7 @@ const createSankeyGraph = (db: SankeyDB, config: Required<SankeyDiagramConfig>)
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];
Expand Down

0 comments on commit a10821f

Please sign in to comment.