Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
client/context menus/insert note: fix a typo
Adorian Doran4ffd005b09ca
diff --git a/apps/client/src/services/note_types.ts b/apps/client/src/services/note_types.tsindex 939d57eee2..9cb8484049 100644--- a/apps/client/src/services/note_types.ts+++ b/apps/client/src/services/note_types.ts@@ -58,7 +58,7 @@ export const NOTE_TYPES: NoteTypeMapping[] = [];/** The maximum age in days for a template to be marked with the "New" badge */-const NEW_TEMPLATE_MIN_AGE = 3;+const NEW_TEMPLATE_MAX_AGE = 3;/** The length of a day in milliseconds. */const DAY_LENGTH = 1000 * 60 * 60 * 24;@@ -209,7 +209,7 @@ async function isNewTemplate(templateNoteId) {// Determine the difference in days between now and the template's creation dateconst age = (new Date().getTime() - creationDate.getTime()) / DAY_LENGTH;// Return true if the template is at most NEW_TEMPLATE_MIN_AGE days old- return (age <= NEW_TEMPLATE_MIN_AGE)+ return (age <= NEW_TEMPLATE_MAX_AGE)} else {return false;}