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): wrong title field from editor container proxy (#8826)

forehalo54c51225ed45
diff --git a/packages/frontend/core/src/modules/peek-view/view/doc-preview/doc-peek-view.tsx b/packages/frontend/core/src/modules/peek-view/view/doc-preview/doc-peek-view.tsx
index c817019615..878de8c916 100644
--- a/packages/frontend/core/src/modules/peek-view/view/doc-preview/doc-peek-view.tsx
+++ b/packages/frontend/core/src/modules/peek-view/view/doc-preview/doc-peek-view.tsx
@@ -108,10 +108,7 @@ function DocPeekPreviewEditor({
})
);
- const unbind = editor.bindEditorContainer(
- editorContainer,
- (editorContainer as any).title
- );
+ const unbind = editor.bindEditorContainer(editorContainer);
if (mode === 'edgeless') {
fitViewport(editorContainer, xywh);