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

@@ -64,7 +64,6 @@ import {
} from '../providers/modal-provider';
import { pathGenerator, publicPathGenerator } from '../shared';
import { toast } from '../utils';
import { setEditorFlags } from '../utils/editor-flag';
const QuickSearchModal = lazy(() =>
import('../components/pure/quick-search-modal').then(module => ({
@@ -311,7 +310,6 @@ export const WorkspaceLayoutInner: FC<PropsWithChildren> = ({ children }) => {
id: pageId,
});
assertEquals(page.id, pageId);
setEditorFlags(currentWorkspace.blockSuiteWorkspace);
if (config.enablePreloading) {
initPageWithPreloading(page).catch(error => {
console.error('import error:', error);