Skip to content

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

web: don't render properties panel for locked sessions Signed-off-by: 01zulfi <[email protected]>

01zulfi94dbec4486d1
diff --git a/apps/web/src/components/editor/index.tsx b/apps/web/src/components/editor/index.tsx
index 1dc6bf684..77c49c9c4 100644
--- a/apps/web/src/components/editor/index.tsx
+++ b/apps/web/src/components/editor/index.tsx
@@ -229,7 +229,8 @@ export default function TabsView() {
) : null}
{arePropertiesVisible &&
activeSession &&
- activeSession.type !== "new" && (
+ activeSession.type !== "new" &&
+ activeSession.type !== "locked" && (
<Pane id="properties-pane" initialSize={250} minSize={250}>
<Properties sessionId={activeSession.id} />
</Pane>