Skip to content

Commit

Permalink
Merge pull request #6677 from WiXSL/add-react-import
Browse files Browse the repository at this point in the history
Fix react import
  • Loading branch information
djhi committed Oct 14, 2021
2 parents c16efa6 + 91cca9c commit f9f745d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ra-core/src/util/mergeRefs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function mergeRefs<T = any>(
if (typeof ref === 'function') {
ref(value);
} else if (ref != null) {
(ref as React.MutableRefObject<T | null>).current = value;
(ref as MutableRefObject<T | null>).current = value;
}
});
};
Expand Down

0 comments on commit f9f745d

Please sign in to comment.