Skip to content

Commit

Permalink
Merge pull request #359 from a876691666/master
Browse files Browse the repository at this point in the history
Fix(History): Refactored the addConnection method in the ConnectionStep class:…
  • Loading branch information
newcat authored Jan 13, 2024
2 parents f922c48 + 2426c5d commit 8a82bcf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/renderer-vue/src/history/connectionStep.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ export default class ConnectionStep implements IStep {
if (!fromIntf || !toIntf) {
return;
}
graph.addConnection(fromIntf, toIntf);
const connection = graph.addConnection(fromIntf, toIntf);
if (connection) {
connection.id = this.connectionState!.id;
}
this.connectionId = connection?.id;
}

private removeConnection(graph: Graph) {
Expand Down

0 comments on commit 8a82bcf

Please sign in to comment.