@@ -93,13 +86,12 @@ export const MainLayout: FC = () => {
- {view === 'history' ? (
+ {view === 'history' && (
- ) : (
-
)}
+
{
if (currentDoc) {
+ debugConsole.log('creating new editor state')
+
const state = EditorState.create({
doc: currentDoc.getSnapshot(),
extensions: createExtensions({