diff --git a/process.js b/process.js index f68bde9..80d1420 100644 --- a/process.js +++ b/process.js @@ -156,7 +156,7 @@ function getProcessPaths(data, workflow) { // }) // }); - return { allPaths, subFlowParentIds, invalidPathsWithoutEnding }; + return { allPaths:[...new Set(allPaths)], subFlowParentIds, invalidPathsWithoutEnding }; } function getProcessPathsSubFlow(data, subFlowIdTemp, workflow) { @@ -306,7 +306,7 @@ function getProcessPathsSubFlow(data, subFlowIdTemp, workflow) { // }) // }); - return { subTreePath, invalidSubPathsWithoutEnding }; + return { subTreePath:[...new Set(subTreePath)], invalidSubPathsWithoutEnding }; } module.exports = {