Skip to content

Commit

Permalink
restore BC measure
Browse files Browse the repository at this point in the history
  • Loading branch information
fzaninotto committed Feb 13, 2021
1 parent 557c26c commit 74d3c5c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/ra-core/src/controller/details/useShowContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,18 @@ export const useShowContext = <RecordType extends Record = Record>(
const extractShowContextProps = ({
basePath,
record,
data,
defaultTitle,
loaded,
loading,
resource,
version,
}: any) => ({
basePath,
record,
// Necessary for actions (EditActions) which expect a data prop containing the record
// @deprecated - to be removed in 4.0d
record: record || data,
data: record || data,
defaultTitle,
loaded,
loading,
Expand Down

0 comments on commit 74d3c5c

Please sign in to comment.