diff --git a/packages/oslo-converter-uml-ea/lib/converter-handlers/ConnectorConverterHandler.ts b/packages/oslo-converter-uml-ea/lib/converter-handlers/ConnectorConverterHandler.ts index 2aed45e..baab5b5 100644 --- a/packages/oslo-converter-uml-ea/lib/converter-handlers/ConnectorConverterHandler.ts +++ b/packages/oslo-converter-uml-ea/lib/converter-handlers/ConnectorConverterHandler.ts @@ -46,12 +46,9 @@ export class ConnectorConverterHandler extends ConverterHandler { - const tasks: Promise[] = []; - model.connectors.forEach(connector => { - tasks.push( - this.connectorNormalisationService.normalise(connector, model), - ); - }); + const tasks: Promise[] = model.connectors + .filter(x => model.targetDiagram.connectorsIds.includes(x.id)) + .map(connector => this.connectorNormalisationService.normalise(connector, model)); model.normalizedConnectors = await Promise.all(tasks).then(x => x.flat());