diff --git a/packages/server/src/utils/index.ts b/packages/server/src/utils/index.ts index afd8e4033..1af3ef3ff 100644 --- a/packages/server/src/utils/index.ts +++ b/packages/server/src/utils/index.ts @@ -298,7 +298,7 @@ export const buildFlow = async ( nodeQueue.push({ nodeId: startingNodeIds[i], depth: 0 }) exploredNode[startingNodeIds[i]] = { remainingLoop: maxLoop, lastSeenDepth: 0 } } - + const initializedNode: Set = new Set() const nonDirectedGraph = constructGraphs(reactFlowNodes, reactFlowEdges, { isReversed: true }).graph while (nodeQueue.length) {