diff --git a/apps/web/src/components/editor/index.tsx b/apps/web/src/components/editor/index.tsx index b03f1eeef..4cf2bb15a 100644 --- a/apps/web/src/components/editor/index.tsx +++ b/apps/web/src/components/editor/index.tsx @@ -141,7 +141,7 @@ export default function EditorManager({ let content: string | null = null; if (locked && isEncryptedContent(item)) { const result = await db.vault - .decryptContent(item) + .decryptContent(item, item.noteId) .catch(() => undefined); if (result) content = result.data; else EV.publish(EVENTS.vaultLocked);