some ts-error-fixes (#6563)

@FelixMalfait 

Let me know what do you think.

Thanks
This commit is contained in:
nitin
2024-08-07 13:42:27 +05:30
committed by GitHub
parent a7941315e7
commit 43700ad186
6 changed files with 24 additions and 12 deletions

View File

@ -18,6 +18,10 @@ export const CustomAddBlockItem = ({
}: CustomAddBlockItemProps) => {
const Components = useComponentsContext();
if (!Components) {
return null;
}
const handleClick = () => {
const blockIdentifier = editor.getTextCursorPosition().block;
const currentBlockContent = blockIdentifier?.content as