update(examples): remove watchEffect from UpdateNodeExample.vue
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com> update(examples): fix style calculation in CustomNode.vue Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -47,10 +47,7 @@ const onPaneClick = (evt: MouseEvent) =>
|
||||
|
||||
const toggleHandleCount = () =>
|
||||
(elements.value = elements.value.map((el) => {
|
||||
if (isEdge(el)) {
|
||||
return el
|
||||
}
|
||||
|
||||
if (isEdge(el)) return el
|
||||
return { ...el, data: { ...el.data, handleCount: el.data?.handleCount === 1 ? 2 : 1 } }
|
||||
}))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user