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
-12
View File
@@ -1,12 +0,0 @@
import { type BlockSuiteFeatureFlags, config } from '@affine/env';
import type { BlockSuiteWorkspace } from '../shared';
export function setEditorFlags(blockSuiteWorkspace: BlockSuiteWorkspace) {
Object.entries(config.editorFlags).forEach(([key, value]) => {
blockSuiteWorkspace.awarenessStore.setFlag(
key as keyof BlockSuiteFeatureFlags,
value
);
});
}