mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 19:11:13 +00:00
feat(editor): Implement custom edge to support loops (no-changelog) (#10171)
Co-authored-by: Alex Grozav <alex@grozav.com>
This commit is contained in:
@@ -167,6 +167,7 @@ export function mapCanvasConnectionToLegacyConnection(
|
||||
|
||||
export function mapLegacyEndpointsToCanvasConnectionPort(
|
||||
endpoints: INodeTypeDescription['inputs'],
|
||||
endpointNames: string[] = [],
|
||||
): CanvasConnectionPort[] {
|
||||
if (typeof endpoints === 'string') {
|
||||
console.warn('Node endpoints have not been evaluated', endpoints);
|
||||
@@ -176,7 +177,8 @@ export function mapLegacyEndpointsToCanvasConnectionPort(
|
||||
return endpoints.map((endpoint, endpointIndex) => {
|
||||
const typeValue = typeof endpoint === 'string' ? endpoint : endpoint.type;
|
||||
const type = isValidNodeConnectionType(typeValue) ? typeValue : NodeConnectionType.Main;
|
||||
const label = typeof endpoint === 'string' ? undefined : endpoint.displayName;
|
||||
const label =
|
||||
typeof endpoint === 'string' ? endpointNames[endpointIndex] : endpoint.displayName;
|
||||
const index =
|
||||
endpoints
|
||||
.slice(0, endpointIndex + 1)
|
||||
|
||||
Reference in New Issue
Block a user