Skip to content

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

web: publish vaultLocked event from db eventManager

Ammar Ahmed75c8ca29ef0b
diff --git a/apps/web/src/components/editor/index.tsx b/apps/web/src/components/editor/index.tsx
index 0eb3824cd..426212fde 100644
--- a/apps/web/src/components/editor/index.tsx
+++ b/apps/web/src/components/editor/index.tsx
@@ -303,7 +303,7 @@ function EditorView({
const result = await db.vault
.decryptContent(item)
- .catch(() => EV.publish(EVENTS.vaultLocked));
+ .catch(() => db.eventManager.publish(EVENTS.vaultLocked));
if (!result) return;
editor.updateContent(result.data);
} else if (isNote && session.note.title !== item.title) {