From 2426c5de35f59aa42b83822c2b1ae27a3221d1fa Mon Sep 17 00:00:00 2001 From: newcat Date: Sat, 13 Jan 2024 23:18:45 +0100 Subject: [PATCH] Formatting --- packages/renderer-vue/src/history/connectionStep.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/renderer-vue/src/history/connectionStep.ts b/packages/renderer-vue/src/history/connectionStep.ts index 1f822574..96c32334 100644 --- a/packages/renderer-vue/src/history/connectionStep.ts +++ b/packages/renderer-vue/src/history/connectionStep.ts @@ -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) {