Skip to content

Commit

Permalink
Merge pull request #7925 from dylanlt/7912-useCreateResult-data
Browse files Browse the repository at this point in the history
Fix simple dataProvider create does not return server data
  • Loading branch information
djhi authored Jul 5, 2022
2 parents 4223623 + 6b6c403 commit 55c19b0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/ra-data-simple-rest/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,7 @@ export default (
httpClient(`${apiUrl}/${resource}`, {
method: 'POST',
body: JSON.stringify(params.data),
}).then(({ json }) => ({
data: { ...params.data, id: json.id },
})),
}).then(({ json }) => ({ data: json })),

delete: (resource, params) =>
httpClient(`${apiUrl}/${resource}/${params.id}`, {
Expand Down

0 comments on commit 55c19b0

Please sign in to comment.