-
Notifications
You must be signed in to change notification settings - Fork 57
App crash after block removal due to undo button pressing #1699
Copy link
Copy link
Closed
WordPress/gutenberg
#19239Labels
Description
Describe the bug
App is crashing when pressing undo button is leading to block removal.
To Reproduce
Steps to reproduce the behavior:
- Add a
Paragraph - Type some characters
- Undo these changes till the block is removed
- See app crash
Expected behavior
The app mustn't crash.
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)
Reactions are currently unavailable
