From c9a1e64e34dcab785c0bbca9d7ab7ab4306f185b Mon Sep 17 00:00:00 2001 From: thecodrr Date: Mon, 15 Aug 2022 14:05:02 +0500 Subject: [PATCH] fix: changes lost when toggling read only mode (fixes streetwriters/notesnook#778) --- apps/web/src/components/editor/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/components/editor/index.tsx b/apps/web/src/components/editor/index.tsx index b4068ee8b..0fdd30849 100644 --- a/apps/web/src/components/editor/index.tsx +++ b/apps/web/src/components/editor/index.tsx @@ -116,7 +116,7 @@ export default function EditorManager({ if (!isOldSession) return; openSession(noteId); - }, [openSession, noteId, isOldSession]); + }, [openSession, noteId, isOldSession, isReadonly]); return (