From 00995431f4874db1add7101a473efa77e63bccc6 Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Thu, 14 Mar 2024 06:38:30 +0500 Subject: [PATCH] web: fix trash note preview is not readonly --- apps/web/src/components/editor/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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