mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-19 11:06:25 +08:00
feat: update blocksuite version
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user