Skip to content

Commit 1e9f3db

Browse files
committed
Fix useUpdate
1 parent fa895eb commit 1e9f3db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ export const useUpdate = <RecordType extends RaRecord = any, ErrorType = Error>(
272272
},
273273
onSuccess: (...args) => {
274274
if (mode.current === 'pessimistic') {
275-
const [, variables] = args;
275+
const [data, variables] = args;
276276
// update the getOne and getList query cache with the new result
277277
const {
278278
resource: callTimeResource = resource,

0 commit comments

Comments
 (0)