1
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:
2022-01-24 20:43:45 -05:00
parent 5847fd82b6
commit c1e030dfcc
6 changed files with 30 additions and 31 deletions

View File

@@ -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);
});