From b425ad7fd227fe0313ff6579224738e0af9d735f Mon Sep 17 00:00:00 2001 From: Eugene Kalinin Date: Tue, 14 Jan 2020 18:46:58 +0300 Subject: [PATCH] Fix a typo in example --- packages/ra-core/src/dataProvider/useCreate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ra-core/src/dataProvider/useCreate.ts b/packages/ra-core/src/dataProvider/useCreate.ts index dd074a284ca..4f52a035089 100644 --- a/packages/ra-core/src/dataProvider/useCreate.ts +++ b/packages/ra-core/src/dataProvider/useCreate.ts @@ -23,7 +23,7 @@ import useMutation from './useMutation'; * const like = { postId: record.id }; * const [create, { loading, error }] = useCreate('likes', like); * if (error) { return

ERROR

; } - * return ; * }; */ const useCreate = (resource: string, data: any = {}, options?: any) =>