Skip to content

Commit 5312d69

Browse files
Madeorskslax57
andcommitted
Fix ReferenceFieldBase documentation.
Co-authored-by: Jean-Baptiste Kaiser <[email protected]>
1 parent 8fdffa3 commit 5312d69

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/ReferenceFieldBase.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,9 @@ For example, the following code prefetches the authors referenced by the posts:
275275
const PostShow = () => (
276276
<ShowBase
277277
queryOptions={{ meta: { prefetch: ['author'] } }}
278-
render={author => (
278+
render={post => (
279279
<div>
280-
<h3>{author.title}</h3>
280+
<h3>{post.title}</h3>
281281
<ReferenceFieldBase source="author_id" reference="authors">
282282
<AuthorView />
283283
</ReferenceFieldBase>

docs_headless/src/content/docs/ReferenceFieldBase.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,9 @@ For example, the following code prefetches the authors referenced by the posts:
267267
const PostShow = () => (
268268
<ShowBase
269269
queryOptions={{ meta: { prefetch: ['author'] } }}
270-
render={author => (
270+
render={post => (
271271
<div>
272-
<h3>{author.title}</h3>
272+
<h3>{post.title}</h3>
273273
<ReferenceFieldBase source="author_id" reference="authors">
274274
<AuthorView />
275275
</ReferenceFieldBase>

0 commit comments

Comments
 (0)