feat(editor): Add plus handle design with ability to add connected nodes in new canvas (no-changelog) (#10097)

This commit is contained in:
Alex Grozav
2024-07-18 19:01:14 +03:00
committed by GitHub
parent 7a135df768
commit 11db5a5b51
29 changed files with 665 additions and 369 deletions

View File

@@ -148,7 +148,8 @@ export function mapLegacyEndpointsToCanvasConnectionPort(
}
return endpoints.map((endpoint, endpointIndex) => {
const type = typeof endpoint === 'string' ? endpoint : endpoint.type;
const typeValue = typeof endpoint === 'string' ? endpoint : endpoint.type;
const type = isValidNodeConnectionType(typeValue) ? typeValue : NodeConnectionType.Main;
const label = typeof endpoint === 'string' ? undefined : endpoint.displayName;
const index =
endpoints