Skip to content

Commit

Permalink
Merge pull request #6994 from marmelab/fix-toolbar-def
Browse files Browse the repository at this point in the history
Fix ToolbarProps to be compatible with FormWithRedirectOwnProps definition
  • Loading branch information
djhi committed Dec 14, 2021
2 parents 8729bc8 + 5eb7212 commit c125c5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/form/Toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ const Toolbar: FC<ToolbarProps> = props => {
);
};

export interface ToolbarProps<RecordType extends Record = Record>
export interface ToolbarProps<RecordType extends Partial<Record> = Record>
extends Omit<MuiToolbarProps, 'classes'> {
children?: ReactNode;
alwaysEnableSaveButton?: boolean;
Expand Down

0 comments on commit c125c5e

Please sign in to comment.