react-notion-x icon indicating copy to clipboard operation
react-notion-x copied to clipboard

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

Open bronze opened this issue 5 months ago • 1 comments
trafficstars

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!

bronze avatar Jun 07 '25 14:06 bronze