refactor(core): omit events when calling toObject
This commit is contained in:
@@ -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
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user