diff --git a/apps/client/src/services/note_types.ts b/apps/client/src/services/note_types.ts index b2da7f76a..dc03cf594 100644 --- a/apps/client/src/services/note_types.ts +++ b/apps/client/src/services/note_types.ts @@ -89,26 +89,28 @@ async function getNoteTypeItems(command?: TreeCommandNames) { return items; } -function getBlankNoteTypes(command): MenuItem[] { - return NOTE_TYPES.filter((nt) => !nt.reserved).map((nt) => { - const menuItem: MenuCommandItem = { - title: nt.title, - command, - type: nt.type, - uiIcon: "bx " + nt.icon, - badges: [] - } +function getBlankNoteTypes(command?: TreeCommandNames): MenuItem[] { + return NOTE_TYPES + .filter((nt) => !nt.reserved && nt.type !== "book") + .map((nt) => { + const menuItem: MenuCommandItem = { + title: nt.title, + command, + type: nt.type, + uiIcon: "bx " + nt.icon, + badges: [] + } - if (nt.isNew) { - menuItem.badges?.push(NEW_BADGE); - } + if (nt.isNew) { + menuItem.badges?.push(NEW_BADGE); + } - if (nt.isBeta) { - menuItem.badges?.push(BETA_BADGE); - } + if (nt.isBeta) { + menuItem.badges?.push(BETA_BADGE); + } - return menuItem; - }); + return menuItem; + }); } async function getUserTemplates(command?: TreeCommandNames) {