feat: update blocksuite version

This commit is contained in:
QiShaoXuan
2022-12-05 23:06:28 +08:00
parent 2ca52c187b
commit d3d45a9dd7
5 changed files with 41 additions and 27 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ export const Editor = () => {
const { editor } = useEditor();
const ref = useRef<any>();
useEffect(() => {
if (editor && ref.current?.space.id !== editor?.space.id) {
if (editor && ref.current?.page.id !== editor?.page.id) {
ref.current?.remove();
ref.current = editor;