From 91c32b6715609a2bcd7a0b07283d83f597e17f15 Mon Sep 17 00:00:00 2001 From: Himself65 Date: Thu, 30 Mar 2023 13:43:29 -0500 Subject: [PATCH] fix: lint issue (#1760) --- .../header/header-right-items/EditorOptionMenu.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/web/src/components/blocksuite/header/header-right-items/EditorOptionMenu.tsx b/apps/web/src/components/blocksuite/header/header-right-items/EditorOptionMenu.tsx index a538fc83d6..9f94b1682f 100644 --- a/apps/web/src/components/blocksuite/header/header-right-items/EditorOptionMenu.tsx +++ b/apps/web/src/components/blocksuite/header/header-right-items/EditorOptionMenu.tsx @@ -39,7 +39,7 @@ export const EditorOptionMenu = () => { const pageMeta = usePageMeta(blockSuiteWorkspace).find( meta => meta.id === pageId ); - const allMetas = usePageMeta(workspace?.blockSuiteWorkspace ?? null); + const allMetas = usePageMeta(blockSuiteWorkspace); const [record, set] = useAtom(workspacePreferredModeAtom); const mode = record[pageId] ?? 'page'; assertExists(pageMeta); @@ -83,12 +83,12 @@ export const EditorOptionMenu = () => { );