I debugged it :)
This commit is contained in:
parent
f345910116
commit
747aa7e755
|
|
@ -251,6 +251,7 @@ export class FlowchartComponent {
|
|||
|
||||
@Watch('rootActivity')
|
||||
private onActivityChanged(value: Activity) {
|
||||
this.path = [];
|
||||
this.updateLookups();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -65,17 +65,8 @@ export class WorkflowNavigator {
|
|||
|
||||
private renderPathItem = (item: FlowchartPathItem, index: number, nodes: Array<ActivityNode>) => {
|
||||
const activityId = item.activityId;
|
||||
let activity: Activity;
|
||||
let activityDescriptor: ActivityDescriptor;
|
||||
|
||||
try {
|
||||
activity = nodes.find(x => x.activity.id == activityId).activity;
|
||||
activityDescriptor = descriptorsStore.activityDescriptors.find(x => x.typeName == activity.type);
|
||||
} catch (e) {
|
||||
alert('Debug this');
|
||||
return;
|
||||
}
|
||||
|
||||
const activity = nodes.find(x => x.activity.id == activityId).activity;
|
||||
const activityDescriptor = descriptorsStore.activityDescriptors.find(x => x.typeName == activity.type);
|
||||
const icon = this.iconRegistry.getOrDefault(activity.type)();
|
||||
const listElements = [];
|
||||
const isLastItem = index == this.items.length - 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue