chore: prefer const

This commit is contained in:
Whitewater
2022-08-09 12:33:56 +08:00
committed by GitHub
parent c2edd93c72
commit 81867d85e3
2 changed files with 2 additions and 2 deletions
@@ -83,7 +83,7 @@ export const CommandMenu = ({ editor, hooks, style }: CommandMenuProps) => {
async (event: React.KeyboardEvent<HTMLDivElement>) => {
const { type, anchorNode } = editor.selection.currentSelectInfo;
// console.log(await editor.getBlockById(anchorNode.id));
let activeBlock = await editor.getBlockById(anchorNode.id);
const activeBlock = await editor.getBlockById(anchorNode.id);
if (activeBlock.type === Protocol.Block.Type.page) {
return;
}