From d7d8519976afe59b80c42f77f141e431e5523c35 Mon Sep 17 00:00:00 2001 From: QiShaoXuan Date: Thu, 13 Oct 2022 18:09:47 +0800 Subject: [PATCH] fix: lint error --- src/components/editor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ( Error!}>