Skip to content

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

fix: changes lost when toggling read only mode (fixes streetwriters/notesnook#778)

thecodrrc9a1e64e34dc
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 (
<Flex