type error hotfixes
This commit is contained in:
1 parent
ec9a63570f
commit
2cc267adda
3 files changed
+5
-3
No files matched your search
@@ -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'>
|
||||
|
||||
Reference in new issue
Block a user