fix(core): ref access when passing default edge options

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-02-02 12:30:48 +01:00
committed by Braks
parent 764a440296
commit cae9562481
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -182,7 +182,7 @@ export default function useHandle({
)
if (isValid) {
if (!onEdgeUpdate) emits.connect({ ...defaultEdgeOptions, ...connection })
if (!onEdgeUpdate) emits.connect({ ...(defaultEdgeOptions?.value || {}), ...connection })
else onEdgeUpdate(connection)
}
}