mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
update title placeholder on save note
This commit is contained in:
@@ -178,6 +178,9 @@ export const useEditor = (
|
||||
if (!note && id) {
|
||||
currentNote.current = db.notes?.note(id).data as NoteType;
|
||||
state.current?.onNoteCreated && state.current.onNoteCreated(id);
|
||||
if (!noteData.title) {
|
||||
postMessage(EditorEvents.titleplaceholder, currentNote.current.title);
|
||||
}
|
||||
}
|
||||
|
||||
if (useEditorStore.getState().currentEditingNote !== id && isDefaultEditor) {
|
||||
|
||||
Reference in New Issue
Block a user