mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-06 05:44:10 +01:00
fix: Flatten Nodelist
This commit is contained in:
@@ -496,7 +496,7 @@ export const addSubGraph = function (
|
|||||||
|
|
||||||
let nodeList: string[] = [];
|
let nodeList: string[] = [];
|
||||||
|
|
||||||
const { nodeList: nl, dir } = uniq([...nodeList, ...list]);
|
const { nodeList: nl, dir } = uniq(list.flat());
|
||||||
nodeList = nl;
|
nodeList = nl;
|
||||||
if (version === 'gen-1') {
|
if (version === 'gen-1') {
|
||||||
for (let i = 0; i < nodeList.length; i++) {
|
for (let i = 0; i < nodeList.length; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user