Skip to content

Commit

Permalink
fix: Flatten Nodelist
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed Nov 27, 2023
1 parent aff69e5 commit d7948a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mermaid/src/diagrams/flowchart/flowDb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ export const addSubGraph = function (

let nodeList: string[] = [];

const { nodeList: nl, dir } = uniq([...nodeList, ...list]);
const { nodeList: nl, dir } = uniq(list.flat());
nodeList = nl;
if (version === 'gen-1') {
for (let i = 0; i < nodeList.length; i++) {
Expand Down

0 comments on commit d7948a8

Please sign in to comment.