Skip to content

App crash after block removal due to undo button pressing #1699

@lukewalczak

Description

@lukewalczak

Describe the bug

App is crashing when pressing undo button is leading to block removal.

To Reproduce
Steps to reproduce the behavior:

  1. Add a Paragraph
  2. Type some characters
  3. Undo these changes till the block is removed
  4. See app crash

Expected behavior
The app mustn't crash.

Screenshots
crrash

Smartphone (please complete the following information):

  • Device: iPhone X
  • OS: 13.1

Additional context

Problem exists in that line

I think that into function getBlock we are passing id (end argument) which is referring to the component which doesn’t exist (is deleted because of undo)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions