Skip to content

Commit 781dc99

Browse files
committed
fix(web): guard against null tags in ArticleTagsList
1 parent e7870b9 commit 781dc99

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

web/src/components/ArticleTagsList.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ type Props = {
99
1010
const { tags, class: className } = Astro.props
1111
12-
const resolved = tags.filter((tag) => typeof tag === 'object').map((tag) => tag.name)
12+
const resolved = (tags ?? []).filter((tag) => typeof tag === 'object').map((tag) => tag.name)
1313
---
1414

1515
<TagsList labels={resolved} class={className} />

0 commit comments

Comments
 (0)