Skip to content

Commit 28e8cda

Browse files
committed
Fix type error
1 parent 644f6a8 commit 28e8cda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/GridItem/Reference.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const { item } = Astro.props;
2020
</p>
2121
<p class="text-sm mt-xxs">
2222
{
23-
`${item.data.description.replace(/<[^>]*>/g, "").split(/(\.|。)(\s|$)/, 1)[0]}.`
23+
`${item.data.description?.replace(/<[^>]*>/g, "").split(/(\.|。)(\s|$)/, 1)[0]}.`
2424
}
2525
</p>
2626
</a>

0 commit comments

Comments
 (0)