From 84629c278ad7caccc895f813cbb77236c6641a51 Mon Sep 17 00:00:00 2001 From: Ali Almahdi <134984+almahdi@users.noreply.github.com> Date: Wed, 8 Jan 2020 10:45:10 +0300 Subject: [PATCH] Update CreateEdit.md Updated the example of useCreate, if you use just data, no data will be sent to the backend. --- docs/CreateEdit.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/CreateEdit.md b/docs/CreateEdit.md index 09ee2e7a2dd..c39140e9249 100644 --- a/docs/CreateEdit.md +++ b/docs/CreateEdit.md @@ -1284,7 +1284,7 @@ const SaveWithNoteButton = props => { create( { - data: { ...formState.values, average_note: 10 }, + payload: { data: { ...formState.values, average_note: 10 } }, }, { onSuccess: ({ data: newRecord }) => {