Skip to content

Commit

Permalink
Update CreateEdit.md
Browse files Browse the repository at this point in the history
Updated the example of useCreate, if you use just data, no data will be sent to the backend.
  • Loading branch information
almahdi committed Jan 8, 2020
1 parent 4619ea4 commit 84629c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/CreateEdit.md
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,7 @@ const SaveWithNoteButton = props => {
create(
{
data: { ...formState.values, average_note: 10 },
payload: { data: { ...formState.values, average_note: 10 } },
},
{
onSuccess: ({ data: newRecord }) => {
Expand Down

0 comments on commit 84629c2

Please sign in to comment.