mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-21 01:06:43 +02:00
fix: Flatten Nodelist
This commit is contained in:
@@ -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++) {
|
||||
|
Reference in New Issue
Block a user