type error hotfixes

This commit is contained in:
2022-04-24 00:40:26 -04:00
parent ec9a63570f
commit 2cc267adda
3 changed files with 5 additions and 3 deletions

View File

@@ -17,7 +17,9 @@ function FuzzyBar(): JSX.Element {
let entries = [...pages];
for (const [k,v] of posts.entries()) {
entries.push({title: v.title, link: `posts/${v.slug}`});
const item = v as any;
if (item.title && item.slug)
entries.push({title: item.title, link: `posts/${item.slug}`});
}
try {