Possibly fixes #307

pull/320/head
Zef Hemel 2023-01-15 11:14:21 +01:00
parent bd4e38fd4e
commit 380e3d3904
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}