Skip to content

Only first related item renders in relation field (others produce missing block errors) #642

Open
@bronze

Description

@bronze

Hi, I believe I've encountered a bug related to relation fields.

Setup:

  • I have two databases: People and Videos.
  • Each Person has a relation field linking to one or more Videos.
  • On the site, the Videos are linked to a Person's page.

Expected behavior:

  • All related videos should appear in the "related" field.

Actual behavior:

  • Only the first related video is rendered.
  • For the remaining related videos, I see empty space (with multiple <span style="padding: 0.5em;"></span>) and the following CLI errors:
"p" missing block 172a2395-517b-8025-8e10-c6dac0c58a0d
"p" missing block 172a2395-517b-8025-b33a-d2abeafa2853
"p" missing block 1eaa2395-517b-80bb-a9c1-f3343fb894ce

Notes:

  • Each missing block ID corresponds to a related Video that failed to render.
  • When I click "View site" inside Notion and access the public URL, all related videos are shown correctly.
  • The issue only occurs when rendering the page in NextJS.
  • I've checked with more than one Person page and only the first related video appears.

Moved here from nextjs-notion-starter-kit/issues/697
Again, thank you a lot for your work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions