fixed press space feature

This commit is contained in:
Nikita 2024-12-25 16:27:11 +03:00
parent 5193cb54b0
commit 31f67071d3

View file

@ -38,10 +38,11 @@ const withMindAI = createHigherOrderComponent((OriginalComponent) => {
const { open, setInsertionPlace } = useDispatch('mind/popup'); const { open, setInsertionPlace } = useDispatch('mind/popup');
useEffect(() => { useEffect(() => {
// Convert content to string, because it is a RichText value.
if ( if (
name === 'core/paragraph' && name === 'core/paragraph' &&
!previousContent && !`${previousContent || ''}` &&
content === ' ' `${content || ''}` === ' '
) { ) {
open(); open();
setInsertionPlace('selected-blocks'); setInsertionPlace('selected-blocks');