fix: lint issue (#1760)

This commit is contained in:
Himself65 2023-03-30 13:43:29 -05:00 committed by GitHub
parent b6ded30770
commit 91c32b6715
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = () => {
<MoveTo
metas={allMetas}
currentMeta={pageMeta}
blockSuiteWorkspace={workspace?.blockSuiteWorkspace}
blockSuiteWorkspace={blockSuiteWorkspace}
/>
<MoveToTrash
testId="editor-option-menu-delete"
currentMeta={pageMeta}
blockSuiteWorkspace={workspace?.blockSuiteWorkspace}
blockSuiteWorkspace={blockSuiteWorkspace}
/>
</>
);