fix: regression on the database and bookmark block (#2737)

This commit is contained in:
Himself65
2023-06-09 11:29:52 +08:00
committed by GitHub
parent 1971749449
commit bf6af934f6
4 changed files with 12 additions and 16 deletions

View File

@@ -19,7 +19,6 @@ import { createIndexedDBBackgroundProvider } from '@affine/workspace/providers';
import { createEmptyBlockSuiteWorkspace } from '@affine/workspace/utils';
import { nanoid } from '@blocksuite/store';
import { setEditorFlags } from '../../utils/editor-flag';
import {
BlockSuitePageList,
PageDetailEditor,
@@ -44,7 +43,6 @@ export const LocalAdapter: WorkspaceAdapter<WorkspaceFlavour.LOCAL> = {
const page = blockSuiteWorkspace.createPage({
id: DEFAULT_HELLO_WORLD_PAGE_ID,
});
setEditorFlags(blockSuiteWorkspace);
if (config.enablePreloading) {
initPageWithPreloading(page).catch(err => {
logger.error('init page with preloading failed', err);