We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
mutationOptions
useBulkDeleteController
1 parent 48b9317 commit 84630dfCopy full SHA for 84630df
packages/ra-ui-materialui/src/button/BulkDeleteWithConfirmButton.tsx
@@ -43,13 +43,13 @@ export const BulkDeleteWithConfirmButton = (
43
mutationMode,
44
...rest,
45
mutationOptions: {
46
- ...rest.mutationOptions,
+ ...mutationOptions,
47
onSettled(...args) {
48
// In pessimistic mode, we wait for the mutation to be completed (either successfully or with an error) before closing
49
if (mutationMode === 'pessimistic') {
50
setOpen(false);
51
}
52
- rest.mutationOptions?.onSettled?.(...args);
+ mutationOptions?.onSettled?.(...args);
53
},
54
55
});
0 commit comments