Only show reroute migration dialog when native reroute is not present (#3318)

This commit is contained in:
Chenlei Hu
2025-04-03 22:08:40 -04:00
committed by GitHub
parent 1279f30f5a
commit df7c7383e2
2 changed files with 19 additions and 3 deletions

View File

@@ -28,6 +28,15 @@ export function findLegacyRerouteNodes(
) as RerouteNode[]
}
/**
* Checks if the workflow has no native reroutes
*/
export function noNativeReroutes(workflow: WorkflowJSON04): boolean {
return (
!workflow.extra?.reroutes?.length && !workflow.extra?.linkExtensions?.length
)
}
/**
* Gets the center position of a node
*/