Update activity-walker.ts
This commit is contained in:
parent
a5eb50f5b7
commit
4479100ff7
|
|
@ -20,7 +20,7 @@ export interface ActivityPort {
|
|||
export function walkActivities(root: Activity, descriptors: Array<ActivityDescriptor>): ActivityNode {
|
||||
// Create a copy of the root to avoid transposing its outbound properties.
|
||||
const rootCopy = {...root};
|
||||
|
||||
|
||||
const collectedActivities = new Set<Activity>([rootCopy]);
|
||||
const graph: ActivityNode = {activity: root, parents: [], children: []};
|
||||
const collectedNodes = new Set<ActivityNode>([graph]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue