update process.js

main
MohammadHoseinPaymard 2 weeks ago
parent 5b51003398
commit 822fe6f06d
  1. 4
      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 = {

Loading…
Cancel
Save