mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
feat: block-hub in edgeless mode (#1634)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user