refactor(core): omit events when calling toObject

This commit is contained in:
braks
2024-02-05 07:51:12 +01:00
committed by Braks
parent f09b7d934b
commit 72cc175142
+2 -1
View File
@@ -810,6 +810,7 @@ export function useActions(
resizing: ______,
dragging: _______,
initialized: ________,
events: _________,
...rest
} = n
@@ -817,7 +818,7 @@ export function useActions(
}),
edges: state.edges.map((e) => {
// omit internal properties when exporting
const { selected: _, sourceNode: __, targetNode: ___, ...rest } = e
const { selected: _, sourceNode: __, targetNode: ___, events: ____, ...rest } = e
return rest
}),