Skip to content

Commit 5d39d9a

Browse files
committed
Fix ReferenceManyFieldBase referencing an invalid Iterator component.
1 parent e7859b4 commit 5d39d9a

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

docs/ReferenceManyFieldBase.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,12 @@ In the example below, both lists use the same reference ('books'), but their sel
374374
meta: { foo: 'bar' },
375375
}}
376376
storeKey="custom"
377+
loading={<p>Loading...</p>}
378+
error={null}
379+
offline={null}
380+
empty={<p>No books</p>}
377381
>
378-
<Iterator render={(book) => (
382+
<RecordsIterator render={(book) => (
379383
<p>{book.title}</p>
380384
)} />
381385
</ReferenceManyFieldBase>

docs_headless/src/content/docs/ReferenceManyFieldBase.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,12 @@ In the example below, both lists use the same reference ('books'), but their sel
357357
meta: { foo: 'bar' },
358358
}}
359359
storeKey="custom"
360+
loading={<p>Loading...</p>}
361+
error={null}
362+
offline={null}
363+
empty={<p>No books</p>}
360364
>
361-
<Iterator render={(book) => (
365+
<RecordsIterator render={(book) => (
362366
<p>{book.title}</p>
363367
)} />
364368
</ReferenceManyFieldBase>

0 commit comments

Comments
 (0)