some ts-error-fixes (#6563)
@FelixMalfait Let me know what do you think. Thanks
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user