Skip to content

Commit

Permalink
Fix connector normalisation function
Browse files Browse the repository at this point in the history
  • Loading branch information
ddvlanck committed Feb 7, 2024
1 parent de0e841 commit 6eacdf4
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,13 @@ export class ConnectorConverterHandler extends ConverterHandler<NormalizedConnec

public async normalize(model: DataRegistry): Promise<DataRegistry> {
const tasks: Promise<NormalizedConnector[]>[] = [];
model.connectors.forEach(connector => {
tasks.push(
this.connectorNormalisationService.normalise(connector, model),
);
});
model.connectors
.filter(x => model.targetDiagram.connectorsIds.includes(x.id))
.forEach(connector => {
tasks.push(
this.connectorNormalisationService.normalise(connector, model),
);
});

model.normalizedConnectors = await Promise.all(tasks).then(x => x.flat());

Expand Down

0 comments on commit 6eacdf4

Please sign in to comment.