save prop to onSubmit

This commit is contained in:
dklimpel 2024-02-05 22:23:09 +01:00
parent 31f0dfda34
commit 6133f7f4f1
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ const ServerNoticeDialog = ({ open, loading, onClose, onSend }) => {
<SimpleForm <SimpleForm
toolbar={<ServerNoticeToolbar />} toolbar={<ServerNoticeToolbar />}
redirect={false} redirect={false}
save={onSend} onSubmit={onSend}
> >
<TextInput <TextInput
source="body" source="body"

View File

@ -64,7 +64,7 @@ const DeleteMediaDialog = ({ open, loading, onClose, onSend }) => {
<SimpleForm <SimpleForm
toolbar={<DeleteMediaToolbar />} toolbar={<DeleteMediaToolbar />}
redirect={false} redirect={false}
save={onSend} onSubmit={onSend}
> >
<DateTimeInput <DateTimeInput
fullWidth fullWidth