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

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

No files matched your search

+1 -1
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