diff --git a/src/public/app/services/note_types.js b/src/public/app/services/note_types.js index 4ea9bebf1..523974c13 100644 --- a/src/public/app/services/note_types.js +++ b/src/public/app/services/note_types.js @@ -18,7 +18,7 @@ async function getNoteTypeItems(command) { const templateNoteIds = await server.get("search-templates"); const templateNotes = await froca.getNotes(templateNoteIds); - if (items.length > 0) { + if (templateNotes.length > 0) { items.push({ title: "----" }); for (const templateNote of templateNotes) { diff --git a/src/public/app/widgets/dialogs/note_type_chooser.js b/src/public/app/widgets/dialogs/note_type_chooser.js index 1aebc07ca..7e1ed55dc 100644 --- a/src/public/app/widgets/dialogs/note_type_chooser.js +++ b/src/public/app/widgets/dialogs/note_type_chooser.js @@ -4,6 +4,11 @@ import BasicWidget from "../basic_widget.js"; const TPL = `