web: freeze unhydrated sessions

This commit is contained in:
Abdullah Atta
2024-03-11 11:01:29 +05:00
parent da938ec348
commit 7b20acaa5a

View File

@@ -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."