type error hotfixes

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

View File

@@ -5,7 +5,7 @@ import Posts from '../../public/posts.json';
import prettyDatePrint from '../../util/pretty-date';
function HomePage({posts}: any) {
Posts.sort((x, y) => { return x.title.localeCompare(y.title) });
Posts.sort((x, y) => { return (x as any).title.localeCompare((x as any).title) });
// todo: create a table-like interface
return (
<Layout name='Posts'>