mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-17 10:06:17 +08:00
fix: page meta is undefined (#2734)
This commit is contained in:
@@ -66,9 +66,8 @@ const EditorWrapper = memo(function EditorWrapper({
|
||||
const pageSettingAtom = pageSettingFamily(pageId);
|
||||
const pageSetting = useAtomValue(pageSettingAtom);
|
||||
const currentMode =
|
||||
pageSetting?.mode ?? DEFAULT_HELLO_WORLD_PAGE_ID === pageId
|
||||
? 'edgeless'
|
||||
: 'page';
|
||||
pageSetting?.mode ??
|
||||
(DEFAULT_HELLO_WORLD_PAGE_ID === pageId ? 'edgeless' : 'page');
|
||||
|
||||
const setEditor = useSetAtom(rootCurrentEditorAtom);
|
||||
assertExists(meta);
|
||||
|
||||
Reference in New Issue
Block a user