diff --git a/docs/Fields.md b/docs/Fields.md index 4960f72673d..378b367f4b1 100644 --- a/docs/Fields.md +++ b/docs/Fields.md @@ -1423,7 +1423,7 @@ The component will be: import * as React from "react"; import { List, Datagrid, TextField, useRecordContext } from 'react-admin'; -const FullNameField = () => { +const FullNameField = (props) => { const record = useRecordContext(props); return {record.firstName} {record.lastName};