diff --git a/editor/js/graph.js b/editor/js/graph.js
index 29badadc8014ef00fc9cd4667e52203f7e15c574..fd8e932aa456b46c813434401ced73386e1d4c00 100644
--- a/editor/js/graph.js
+++ b/editor/js/graph.js
@@ -163,21 +163,8 @@ export class Graph extends ManagedData {
                 return;
             }
 
-            var link = {};
-
-            link[LINK_SOURCE] = sourceId;
-            link[LINK_TARGET] = targetId;
-
-            this.data[GRAPH_LINKS].push(link);
+            this.addLink(sourceId, targetId);
         });
-
-        this.storeCurrentData(
-            "Created link connecting [" +
-                sourceId +
-                "] with [" +
-                targetIds.join() +
-                "]"
-        );
     }
 
     getCleanData(data = undefined, simulationParameters = false) {