Skip to content

Commit 84630df

Browse files
authored
fix: use mutationOptions prop directly in useBulkDeleteController
1 parent 48b9317 commit 84630df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/ra-ui-materialui/src/button/BulkDeleteWithConfirmButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ export const BulkDeleteWithConfirmButton = (
4343
mutationMode,
4444
...rest,
4545
mutationOptions: {
46-
...rest.mutationOptions,
46+
...mutationOptions,
4747
onSettled(...args) {
4848
// In pessimistic mode, we wait for the mutation to be completed (either successfully or with an error) before closing
4949
if (mutationMode === 'pessimistic') {
5050
setOpen(false);
5151
}
52-
rest.mutationOptions?.onSettled?.(...args);
52+
mutationOptions?.onSettled?.(...args);
5353
},
5454
},
5555
});

0 commit comments

Comments
 (0)