Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: init state

Yifeng Wang62aaf25f8a5c
diff --git a/packages/app/src/components/editor.tsx b/packages/app/src/components/editor.tsx
index 401e40dc63..45c2556aa0 100644
--- a/packages/app/src/components/editor.tsx
+++ b/packages/app/src/components/editor.tsx
@@ -23,8 +23,7 @@ export const Editor = () => {
const text = new Text(store, 'Legend from here...');
store.addBlock({ flavour: 'paragraph', text }, groupId);
-
- // store.resetHistory();
+ store.resetHistory();
}, [setEditor]);
return (