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.
1 parent e7870b9 commit 781dc99Copy full SHA for 781dc99
1 file changed
web/src/components/ArticleTagsList.astro
@@ -9,7 +9,7 @@ type Props = {
9
10
const { tags, class: className } = Astro.props
11
12
-const resolved = tags.filter((tag) => typeof tag === 'object').map((tag) => tag.name)
+const resolved = (tags ?? []).filter((tag) => typeof tag === 'object').map((tag) => tag.name)
13
---
14
15
<TagsList labels={resolved} class={className} />
0 commit comments