Skip to content

Commit

Permalink
Merge pull request #5855 from marmelab/fix-mutation-mode-defaults
Browse files Browse the repository at this point in the history
Fix DeleteButton mutationMode handling
  • Loading branch information
fzaninotto authored Feb 4, 2021
2 parents e33385c + 24facdd commit 0deb2b5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/ra-ui-materialui/src/button/DeleteButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import DeleteWithConfirmButton from './DeleteWithConfirmButton';
*/
const DeleteButton: FC<DeleteButtonProps> = ({
undoable,
mutationMode,
mutationMode = 'undoable',
record,
...props
}) => {
Expand Down Expand Up @@ -103,8 +103,4 @@ DeleteButton.propTypes = {
icon: PropTypes.element,
};

DeleteButton.defaultProps = {
undoable: true,
};

export default DeleteButton;

0 comments on commit 0deb2b5

Please sign in to comment.