Skip to content

Commit

Permalink
Start transition aggregate group at 0 instead of 1 (#6466)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwdchang authored Feb 7, 2025
1 parent 6bd40e2 commit 579bf7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,8 @@ export const collapseTemplates = (miraModel: MiraModel) => {
if (check.has(key)) return;

uniqueTemplates.push(t);
check.set(key, ++keyCounter);
check.set(key, keyCounter);
keyCounter++;
});

// 3 Rename and sanitize everything
Expand Down
3 changes: 2 additions & 1 deletion packages/client/hmi-client/src/services/graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,9 @@ export const runDagreLayout = <V, E>(graphData: IGraph<V, E>, lr: boolean = true

// manual route controller edges
const controllerEdges = graphData.edges.filter((edge: IEdge<any>) => edge.data?.isController === true);

// Effectively disabling fast-version, DC Feb 2025
if (controllerEdges.length < 99999) {
// Effectively disabling fast-version, DC Feb 2025
rerouteEdges(graphData.nodes, controllerEdges);
} else {
rerouteEdgesFast(graphData.nodes, controllerEdges);
Expand Down

0 comments on commit 579bf7b

Please sign in to comment.