diff --git a/plug-api/lib/frontmatter.ts b/plug-api/lib/frontmatter.ts index 75d72395..8f8ddbf1 100644 --- a/plug-api/lib/frontmatter.ts +++ b/plug-api/lib/frontmatter.ts @@ -27,7 +27,7 @@ export function extractFrontmatter( if (!data.tags) { data.tags = []; } - if (!data.tags.includes(tagname)) { + if (Array.isArray(data.tags) && !data.tags.includes(tagname)) { data.tags.push(tagname); } }