From 75c8ca29ef0b26c8ac67e2aa7d5f2d46e1ec3d44 Mon Sep 17 00:00:00 2001 From: Ammar Ahmed Date: Mon, 16 Feb 2026 14:42:43 +0500 Subject: [PATCH] web: publish vaultLocked event from db eventManager --- apps/web/src/components/editor/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {