Skip to content

Commit

Permalink
Fix onDelete bug
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosNZ committed Dec 21, 2024
1 parent c6ef50b commit 6b96e2d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/CollectionNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,7 @@ export const CollectionNode: React.FC<CollectionNodeProps> = (props) => {
? () => {
onDelete(data, path).then((error) => {
if (error) {
onError(
{ code: 'DELETE_ERROR', message: error },
extractProperty(data, path) as CollectionData
)
onError({ code: 'DELETE_ERROR', message: error }, data)
}
})
}
Expand Down

0 comments on commit 6b96e2d

Please sign in to comment.