Skip to content

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

web: freeze unhydrated sessions

Abdullah Atta8fe2774d8fbe
diff --git a/apps/web/src/components/editor/index.tsx b/apps/web/src/components/editor/index.tsx
index 327bae859..49c5e9790 100644
--- a/apps/web/src/components/editor/index.tsx
+++ b/apps/web/src/components/editor/index.tsx
@@ -93,8 +93,11 @@ export default function TabsView() {
<>
<EditorActionBar />
{sessions.map((session) => (
- <Freeze key={session.id} freeze={session.id !== activeSessionId}>
- {session.needsHydration ? null : session.type === "locked" ? (
+ <Freeze
+ key={session.id}
+ freeze={session.needsHydration || session.id !== activeSessionId}
+ >
+ {session.type === "locked" ? (
<UnlockView
buttonTitle="Open note"
subtitle="Please enter the password to unlock this note."