fix(core): ref access when passing default edge options
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user