We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c05d5ca + 7e1653e commit 2140246Copy full SHA for 2140246
packages/ra-core/src/controller/saveModifiers.tsx
@@ -42,7 +42,7 @@ export const useSaveModifiers = ({
42
const onFailureRef = useRef(onFailure);
43
const setOnFailure: SetOnFailure = onFailure => {
44
onFailureRef.current = error => {
45
- // reset onSuccess for next submission
+ // reset onFailure for next submission
46
onFailureRef.current = undefined;
47
return onFailure(error);
48
};
0 commit comments