e2e(core): add test for split view (#6133)

This commit is contained in:
Peng Xiao
2024-03-18 07:04:06 +00:00
parent dc8f351051
commit 5693d90451
4 changed files with 67 additions and 4 deletions

View File

@@ -80,7 +80,7 @@ export function setupEditorFlags(docCollection: DocCollection) {
const syncEditorFlags = () => {
try {
const editorFlags = getCurrentStore().get(appSettingBaseAtom).editorFlags;
Object.entries(editorFlags).forEach(([key, value]) => {
Object.entries(editorFlags ?? {}).forEach(([key, value]) => {
docCollection.awarenessStore.setFlag(
key as keyof BlockSuiteFlags,
value