Skip to content

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

web: fix trash note preview is not readonly

Abdullah Atta00995431f487
diff --git a/apps/web/src/components/editor/index.tsx b/apps/web/src/components/editor/index.tsx
index e14595bdf..fbe8433d8 100644
--- a/apps/web/src/components/editor/index.tsx
+++ b/apps/web/src/components/editor/index.tsx
@@ -256,7 +256,8 @@ function EditorView({
deferredSave(session.id, session.id, ignoreEdit, data);
}}
options={{
- readonly: session?.type === "readonly",
+ readonly:
+ session?.type === "readonly" || session?.type === "deleted",
onRequestFocus: () => toggleProperties(false),
focusMode: isFocusMode,
isMobile: isMobile || isTablet