mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-30 05:42:00 -08:00
handle issue when endpoints are not set
This commit is contained in:
parent
9755c712e1
commit
0f07c88476
|
@ -226,6 +226,10 @@ export const hideOverlay = (item: Connection | Endpoint, overlayId: string) => {
|
|||
};
|
||||
|
||||
export const showOrHideMidpointArrow = (connection: Connection) => {
|
||||
if (!connection || !connection.endpoints || connection.endpoints.length !== 2) {
|
||||
return;
|
||||
}
|
||||
|
||||
const hasItemsLabel = !!getOverlay(connection, OVERLAY_RUN_ITEMS_ID);
|
||||
|
||||
const sourceEndpoint = connection.endpoints[0];
|
||||
|
|
Loading…
Reference in a new issue