Fixed an issue with journal

This commit is contained in:
Gürkan Güran 2023-06-06 02:11:14 +02:00
parent 5bd8d47ed5
commit 87d55ced50

View file

@ -138,9 +138,13 @@ export class WorkflowInstanceViewer {
}
private findFlowchartOfActivityRecursive(activity: Activity): Flowchart {
if (activity.type == "Elsa.Flowchart" || (activity.root == null && activity.body.type == "Elsa.Flowchart")) {
if (activity.type == "Elsa.Flowchart") {
return activity as Flowchart;
}
else if(activity.root == null && activity.body.type == "Elsa.Flowchart"){
return activity.body as Flowchart;
} else {
}
else {
return this.findFlowchartOfActivityRecursive((activity as Workflow).root);
}
}