diff --git a/website/src/docs/JsDoc.jsx b/website/src/docs/JsDoc.jsx
index 88a775a5..1ba80e0a 100644
--- a/website/src/docs/JsDoc.jsx
+++ b/website/src/docs/JsDoc.jsx
@@ -12,10 +12,11 @@ export function JsDoc({ name, h = 3, hideDescription, punchcard, canvasHeight })
}
const synonyms = getTag('synonyms', item)?.split(', ') || [];
const CustomHeading = `h${h}`;
- const description = item.description.replaceAll(/\{@link ([a-zA-Z\.]+)?#?([a-zA-Z]*)\}/g, (_, a, b) => {
- // console.log(_, 'a', a, 'b', b);
- return `${a}${b ? `#${b}` : ''}`;
- });
+ const description =
+ item.description?.replaceAll(/\{@link ([a-zA-Z\.]+)?#?([a-zA-Z]*)\}/g, (_, a, b) => {
+ // console.log(_, 'a', a, 'b', b);
+ return `${a}${b ? `#${b}` : ''}`;
+ }) || '';
return (
<>
{!!h && {item.longname}}