fix(store): correct injection and remove id from refs

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-12-04 15:42:18 +01:00
parent 491c83dcc8
commit 3b448100d6
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ const connectionExists = (edge: Edge, elements: Elements) => {
export const addEdge = (edgeParams: Edge | Connection, elements: Elements) => {
if (!edgeParams.source || !edgeParams.target) {
console.log("Can't create edge. An edge needs a source and a target.")
console.warn("Can't create edge. An edge needs a source and a target.")
return elements
}