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(core): fix editor sidebar (#5965)

EYHN78ce30db6917
diff --git a/packages/frontend/core/src/components/blocksuite/block-suite-editor/blocksuite-editor-container.tsx b/packages/frontend/core/src/components/blocksuite/block-suite-editor/blocksuite-editor-container.tsx
index f2140edc16..faaa935ec4 100644
--- a/packages/frontend/core/src/components/blocksuite/block-suite-editor/blocksuite-editor-container.tsx
+++ b/packages/frontend/core/src/components/blocksuite/block-suite-editor/blocksuite-editor-container.tsx
@@ -146,6 +146,9 @@ export const BlocksuiteEditorContainer = forwardRef<
get page() {
return page;
},
+ get doc() {
+ return page;
+ },
get host() {
return mode === 'page'
? docRef.current?.host