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

This commit is contained in:
Fangdun Tsai
2023-03-22 11:41:54 +08:00
committed by GitHub
parent 64dac7cc1c
commit 215db27cd6
2 changed files with 2 additions and 4 deletions

View File

@@ -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();