onbeforeconnect instead of onedgecreate

This commit is contained in:
peterkogo
2025-04-09 15:29:13 +02:00
parent 108f1ce81c
commit 95df44d5d1
5 changed files with 7 additions and 7 deletions
@@ -60,7 +60,7 @@
cancelConnection: store.cancelConnection,
panBy: store.panBy,
onConnect: (connection) => {
const edge = store.onedgecreate ? store.onedgecreate(connection) : connection;
const edge = store.onbeforeconnect?.(connection) ?? connection;
if (!edge) {
return;