Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
newcat committed Jan 13, 2024
1 parent 37bc990 commit 2426c5d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/renderer-vue/src/history/connectionStep.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ export default class ConnectionStep implements IStep {
return;
}
const connection = graph.addConnection(fromIntf, toIntf);
if (connection) connection.id = this.connectionState!.id; // addConnection needs the id
this.connectionId = connection?.id; // removeConnection needs the id
if (connection) {
connection.id = this.connectionState!.id;
}
this.connectionId = connection?.id;
}

private removeConnection(graph: Graph) {
Expand Down

0 comments on commit 2426c5d

Please sign in to comment.