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

fix: notion-compat page title missing richtext causes convert failure

Open bycaldr opened this issue 6 months ago • 1 comments
trafficstars

Description

Since I upgraded from v6 to the latest v7, I found an unexpected issue with notion-compat API client.

(I'm not an expert on Notion API, so sorry for the possibly incorrect description) My Notion page has for some reason title as plaintext, not rich_text and then convertRichText() fails due undefined parameter: Cannot read properties of undefined (reading 'map').

I added this basic check, which fixed the case on my project.

Notion Test Page ID

Notion page ID: 1e4b49ae084b809597f6c5bd5167d82c

bycaldr avatar May 02 '25 12:05 bycaldr