fix: changes lost when toggling read only mode

(fixes streetwriters/notesnook#778)
This commit is contained in:
thecodrr
2022-08-15 14:05:02 +05:00
parent 97dfc4e146
commit c9a1e64e34

View File

@@ -116,7 +116,7 @@ export default function EditorManager({
if (!isOldSession) return;
openSession(noteId);
}, [openSession, noteId, isOldSession]);
}, [openSession, noteId, isOldSession, isReadonly]);
return (
<Flex