Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: fix getting active note commands in command palette (#9234)

01zulfid951b97beda7
diff --git a/apps/web/src/dialogs/command-palette/commands.ts b/apps/web/src/dialogs/command-palette/commands.ts
index 49b41be60..4173d54e7 100644
--- a/apps/web/src/dialogs/command-palette/commands.ts
+++ b/apps/web/src/dialogs/command-palette/commands.ts
@@ -328,7 +328,7 @@ async function getActiveNoteCommands(): Promise<Command[]> {
const menuItems =
note.type !== "trash"
- ? noteMenuItems(note, [note.id], {
+ ? await noteMenuItems(note, [note.id], {
locked: !!(
await db
.sql()