From 822fe6f06d3de90c10268bc8f2129f2c53425363 Mon Sep 17 00:00:00 2001 From: MohammadHoseinPaymard Date: Mon, 26 May 2025 19:22:53 +0330 Subject: [PATCH] update process.js --- process.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = {