We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8b7f6f1 + d8002d1 commit 837d54aCopy full SHA for 837d54a
packages/notion-to-jsx/src/components/Renderer/components/RichText/RichTexts.tsx
@@ -44,7 +44,9 @@ export interface RichTextItem {
44
45
text?: {
46
content: string;
47
- link: string | null;
+ link: {
48
+ url: string | null;
49
+ } | null;
50
};
51
}
52
@@ -76,8 +78,9 @@ const RichTexts: React.FC<RichTextProps> = ({ richTexts }) => {
76
78
case 'text': {
77
79
if (text.text) {
80
const { text: textData } = text;
- content = textData.link
- ? renderLink(textData.link, textData.content)
81
+
82
+ content = textData.link?.url
83
+ ? renderLink(textData.link.url, textData.content)
84
: textData.content;
85
} else {
86
content = text.plain_text;
0 commit comments