From 5e61fb933fada853012ff3e735cec7718b67def5 Mon Sep 17 00:00:00 2001 From: thecodrr Date: Tue, 6 Apr 2021 11:05:01 +0500 Subject: [PATCH] feat: allow custom headline in note --- packages/core/collections/notes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/collections/notes.js b/packages/core/collections/notes.js index 679fb3971..e75085f43 100644 --- a/packages/core/collections/notes.js +++ b/packages/core/collections/notes.js @@ -282,7 +282,7 @@ function isNoteEmpty(note, content) { function getNoteHeadline(note, content) { if (note.locked) return ""; - return content.toHeadline(); + return note.headline || content.toHeadline(); } function getNoteTitle(note, content) {