small improvement

This commit is contained in:
2023-04-29 19:45:06 +02:00
parent cca2ad3a66
commit 4ed786d5ad
2 changed files with 5 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ export const notes = computed<Note[]>(() => {
return Object.entries(baseNotes)
.map(([_, note]) => ({
...note,
wordCount: note.content.split(' ').length,
wordCount: note.content.split(' ').length - 1,
}))
.sort((a, b) => b.modified - a.modified) as Note[]
})