diff --git a/src/rootPages/Designer/properties/process/ABProcessGatewayExclusive.js b/src/rootPages/Designer/properties/process/ABProcessGatewayExclusive.js index a3640b4..f0f3d32 100644 --- a/src/rootPages/Designer/properties/process/ABProcessGatewayExclusive.js +++ b/src/rootPages/Designer/properties/process/ABProcessGatewayExclusive.js @@ -72,8 +72,12 @@ export default function (AB) { }) .filter((f) => f); - const myOutgoingConnections = element.process.connectionsOutgoing( - element.diagramID + const myOutgoingConnections = ( + element.process?.connectionsOutgoing?.(element.diagramID) ?? [] + ).filter( + // Prevent duplicates + (conn, pos, self) => + self.findIndex((item) => item.id === conn.id) === pos ); this.__dfLookup = {};