You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// ra-core/src/controller/button/useDeleteWithConfirmController.tsx line 98// ra-core/src/controller/button/useDeleteWithUndoController.tsx line 66// from{id: record.id,previousData: record}// to{id: record.id,previousData: record,meta: mutationOptions.meta}
Environment
React-admin version: 4.2.4
Last version that did not exhibit the issue (if applicable):
React version: 17
Browser: Chrome 100+
Stack trace (in case of a JS error):
The text was updated successfully, but these errors were encountered:
carlos-duran
changed the title
meta is undefined in params of delete method of dataProvider when using Deletebutton
meta is undefined in params of delete method of dataProvider when using DeleteButton
Jul 27, 2022
What you were expecting:
Receiving
meta
in data provider when using DeleteButton withmutationOptions
prop.What happened instead:
meta
is undefined in thedelete
method ofdataProvider
.Steps to reproduce:
Related code:
https://codesandbox.io/s/young-pond-nioyun?file=/src/users/UserEdit.tsx:613-683
Other information:
Suggestion to possible fix:
https://github.com/marmelab/react-admin/blob/master/packages/ra-core/src/controller/button/useDeleteWithConfirmController.tsx#L98
Environment
The text was updated successfully, but these errors were encountered: