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: lint error

QiShaoXuand7d8519976af
diff --git a/src/components/editor.tsx b/src/components/editor.tsx
index d6cf8b504e..d2462ea28d 100644
--- a/src/components/editor.tsx
+++ b/src/components/editor.tsx
@@ -23,7 +23,7 @@ export const Editor = () => {
store.addBlock({ flavour: 'paragraph', text }, groupId);
// store._history.clear();
- }, []);
+ }, [setEditor]);
return (
<Suspense fallback={<div>Error!</div>}>