Skip to content

Commit 6b96e2d

Browse files
committed
Fix onDelete bug
1 parent c6ef50b commit 6b96e2d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/CollectionNode.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,7 @@ export const CollectionNode: React.FC<CollectionNodeProps> = (props) => {
191191
? () => {
192192
onDelete(data, path).then((error) => {
193193
if (error) {
194-
onError(
195-
{ code: 'DELETE_ERROR', message: error },
196-
extractProperty(data, path) as CollectionData
197-
)
194+
onError({ code: 'DELETE_ERROR', message: error }, data)
198195
}
199196
})
200197
}

0 commit comments

Comments
 (0)