mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-27 03:42:08 +03:00
fix: lint issue (#1760)
This commit is contained in:
parent
b6ded30770
commit
91c32b6715
@ -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}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user