mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 14:30:41 +00:00
Only show reroute migration dialog when native reroute is not present (#3318)
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user