Skip to content

Commit af48d4a

Browse files
committed
[Doc] Fix incorrect ReferenceField syntax in 2 more places
1 parent 4ab91c2 commit af48d4a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/ReferenceField.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ const PostList = () => (
250250
<Datagrid>
251251
<TextField source="title" />
252252
{/** renders without an additional request */}
253-
<ReferenceField source="author_id" />
253+
<ReferenceField source="author_id" reference="authors" />
254254
</Datagrid>
255255
</List>
256256
);

packages/ra-data-fakerest/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ const PostList = () => (
185185
<Datagrid>
186186
<TextField source="title" />
187187
{/** renders without an additional request */}
188-
<ReferenceField source="author_id" />
188+
<ReferenceField source="author_id" reference="authors" />
189189
</Datagrid>
190190
</List>
191191
);

0 commit comments

Comments
 (0)