chore(docs): correct description of auto connect prop

This commit is contained in:
braks
2023-06-08 18:50:35 +02:00
committed by Braks
parent 48ea70bc3e
commit 12f4284a0a
+5 -5
View File
@@ -762,15 +762,15 @@ import { ref } from 'vue'
const elements = ref([/** elements omitted for simplicity */]) const elements = ref([/** elements omitted for simplicity */])
const connector = (params) => { const connector = (params) => {
if (params.source.id === params.target.id) { if (params.source === params.target) {
return false return false
} }
return { return {
id: `edge-${params.source.id}-${params.target.id}`, id: `edge-${params.source.id}-${params.target}`,
source: params.source.id, source: params.source,
target: params.target.id, target: params.target,
label: `Edge ${params.source.id}-${params.target.id}`, label: `Edge ${params.source}-${params.target}`,
animated: true, animated: true,
} }
} }