mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-21 02:01:16 -04:00
fix magic wand cursor 🪄
This commit is contained in:
@@ -25,7 +25,7 @@ export const getStaticProps: GetStaticProps = async () => {
|
||||
// parse the year of each note and group them together
|
||||
const notesByYear = {};
|
||||
getAllNotes().map((note) => {
|
||||
const year = parseInt(format(new Date(note.date), "yyyy"));
|
||||
const year = Number.parseInt(format(new Date(note.date), "yyyy"));
|
||||
(notesByYear[year] || (notesByYear[year] = [])).push(note);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user