Skip to content

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

web: fix executing recent command does nothing

Abdullah Atta7b2a8c3e2054
diff --git a/apps/web/src/dialogs/command-palette/commands.ts b/apps/web/src/dialogs/command-palette/commands.ts
index 3064f97f3..7d2e62508 100644
--- a/apps/web/src/dialogs/command-palette/commands.ts
+++ b/apps/web/src/dialogs/command-palette/commands.ts
@@ -66,7 +66,7 @@ export interface RecentCommand extends BaseCommand {
}
export const commandActions = {
- command: (command: Command) => getCommandById(command.id)?.action,
+ command: (command: Command) => getCommandById(command.id)?.action(command),
note: (command: Command, options?: { openInNewTab?: boolean }) =>
useEditorStore.getState().openSession(command.id, options),
notebook: (command: Command) => navigate(`/notebooks/${command.id}`),