[blogs][xs]: fix issue with date field
This commit is contained in:
parent
0c65a145c8
commit
53ea7957c0
@ -49,8 +49,8 @@ export async function getStaticProps() {
|
||||
|
||||
const blogsSorted = blogList.sort(
|
||||
(a, b) =>
|
||||
new Date(b.metadata?.date).getTime() -
|
||||
new Date(a.metadata?.date).getTime()
|
||||
new Date(b?.date).getTime() -
|
||||
new Date(a?.date).getTime()
|
||||
);
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user