You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into the same problem just randomly clicking in the editor with some text in it. It crashes here.
Apparently, the problem is in this expressione.getSelection()?.blocks || [e.getTextCursorPosition().block] in useSelectedBlocks. I guess, of e.getSelection()?.blocks returns an empty array, we need to take [e.getTextCursorPosition().block], but in current implementation we won't since [] == true.
Or maybe we just need to check if block is undefined
Describe the bug
getting TypeError: Cannot read properties of undefined (reading 'type')
To Reproduce
The text was updated successfully, but these errors were encountered: