Skip to content

Commit ff72da9

Browse files
committed
Improve UpdateWithUndoButton props type
1 parent d8f97d6 commit ff72da9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,10 @@ export interface UpdateWithUndoButtonProps<
102102
RecordType extends RaRecord = any,
103103
MutationOptionsError = unknown,
104104
> extends ButtonProps,
105-
UseUpdateControllerParams<RecordType, MutationOptionsError> {
105+
Omit<
106+
UseUpdateControllerParams<RecordType, MutationOptionsError>,
107+
'mutationMode'
108+
> {
106109
icon?: React.ReactNode;
107110
data: any;
108111
}

0 commit comments

Comments
 (0)