Skip to content

Commit 98b6fe5

Browse files
committed
Fix comments
1 parent 92ea564 commit 98b6fe5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/ra-core/src/dataProvider/useCreate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ export const useCreate = <
206206
dataProviderCreate.bind(dataProvider)
207207
);
208208
return args => {
209-
// This is necessary to avoid breaking changes in useUpdate:
209+
// This is necessary to avoid breaking changes in useCreate:
210210
// The mutation function must have the same signature as before (resource, params) and not ({ resource, params })
211211
const { resource, ...params } = args;
212212
return mutateWithMiddlewares(resource, params);

packages/ra-core/src/dataProvider/useUpdateMany.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ export const useUpdateMany = <
260260
dataProviderUpdateMany.bind(dataProvider)
261261
);
262262
return args => {
263-
// This is necessary to avoid breaking changes in useUpdate:
263+
// This is necessary to avoid breaking changes in useUpdateMany:
264264
// The mutation function must have the same signature as before (resource, params) and not ({ resource, params })
265265
const { resource, ...params } = args;
266266
return mutateWithMiddlewares(resource, params);

0 commit comments

Comments
 (0)