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: force page mode in public workspace (#1527)

Himself65f47a23b0b5df
diff --git a/apps/web/src/components/page-detail-editor.tsx b/apps/web/src/components/page-detail-editor.tsx
index 94d9628802..77513d3788 100644
--- a/apps/web/src/components/page-detail-editor.tsx
+++ b/apps/web/src/components/page-detail-editor.tsx
@@ -65,7 +65,8 @@ export const PageDetailEditor: React.FC<PageDetailEditorProps> = ({
}}
key={pageId}
blockSuiteWorkspace={blockSuiteWorkspace}
- mode={meta.mode ?? 'page'}
+ // fixme: remove mode from meta
+ mode={isPublic ? 'page' : meta.mode ?? 'page'}
page={page}
onInit={onInit}
onLoad={onLoad}