fix: Flatten Nodelist

This commit is contained in:
Sidharth Vinod
2023-11-28 00:12:22 +05:30
parent aff69e583e
commit d7948a845d

View File

@@ -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++) {