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.

feat: block-hub in edgeless mode (#1634)

Fangdun Tsai215db27cd6f4
diff --git a/.github/CLA.md b/.github/CLA.md
index 999230a180..22a198336d 100644
--- a/.github/CLA.md
+++ b/.github/CLA.md
@@ -51,3 +51,4 @@ Example:
- Alessio Gravili, @AlessioGr, 2023/03/04
- Victor Nanka, @victornanka, 2023/03/09
- Aditya Sharma, @adityash1, 2023/03/21
+- Fangdun Tsai, @fundon, 2023/03/21
diff --git a/packages/component/src/components/block-suite-editor/index.tsx b/packages/component/src/components/block-suite-editor/index.tsx
index 30d8dbcf68..8095c7ab57 100644
--- a/packages/component/src/components/block-suite-editor/index.tsx
+++ b/packages/component/src/components/block-suite-editor/index.tsx
@@ -58,10 +58,7 @@ export const BlockSuiteEditor = (props: EditorProps) => {
if (!editor || !container || !page) {
return;
}
- if (
- page.awarenessStore.getFlag('enable_block_hub') &&
- props.mode === 'page'
- ) {
+ if (page.awarenessStore.getFlag('enable_block_hub')) {
editor.createBlockHub().then(blockHub => {
if (blockHubRef.current) {
blockHubRef.current.remove();