BlockNote icon indicating copy to clipboard operation
BlockNote copied to clipboard

🐛 blockIdentifier can be null

Open AntoLC opened this issue 1 year ago • 0 comments

Describe the bug In a collaborative way, if a user removes the block where another user is located it creates an error.

image

https://github.com/TypeCellOS/BlockNote/blob/8a5d845407e7bdf63b49fa3b6e4a6d8201e1213a/packages/core/src/editor/BlockNoteEditor.ts#L395

Possible solution

public getBlock(
    blockIdentifier?: BlockIdentifier

Thank you.

AntoLC avatar Apr 09 '24 10:04 AntoLC