vcomply-workflow-engine 6.4.7 → 6.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -38383,6 +38383,7 @@ class WorkflowPolicyComponent {
|
|
|
38383
38383
|
});
|
|
38384
38384
|
}
|
|
38385
38385
|
hasWorkflowChanges(newApproverIds) {
|
|
38386
|
+
debugger;
|
|
38386
38387
|
// If there is no workflow selected
|
|
38387
38388
|
if (!this.selectedWorkflow?.length || !this.selectedWorkflow[0]?.approval_workflow) {
|
|
38388
38389
|
return true;
|
|
@@ -38396,7 +38397,7 @@ class WorkflowPolicyComponent {
|
|
|
38396
38397
|
//Compare each level in the workflow
|
|
38397
38398
|
for (const levelKey in newApprovers) {
|
|
38398
38399
|
const newLevel = newApprovers[levelKey];
|
|
38399
|
-
let existingLevel = existingWorkflow.find((level) => level.
|
|
38400
|
+
let existingLevel = existingWorkflow.find((level) => level.alias_name === newLevel.alias_name);
|
|
38400
38401
|
if (!existingLevel && existingWorkflow[parseInt(levelKey.replace('level', '')) - 1]) {
|
|
38401
38402
|
existingLevel = existingWorkflow[parseInt(levelKey.replace('level', '')) - 1];
|
|
38402
38403
|
}
|