mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-17 10:06:17 +08:00
chore: prefer const
This commit is contained in:
@@ -26,7 +26,7 @@ export const InlineMenuContainer = ({ editor }: InlineMenuContainerProps) => {
|
||||
const unsubscribe = editor.selection.onSelectEnd(async info => {
|
||||
const { type, browserSelection, anchorNode } = info;
|
||||
if (anchorNode) {
|
||||
let activeBlock = await editor.getBlockById(anchorNode.id);
|
||||
const activeBlock = await editor.getBlockById(anchorNode.id);
|
||||
if (activeBlock.type === Protocol.Block.Type.page) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user