Describe the bug
There is a mismatch while displaying the details of the Active item in the toolbar once an item is deleted (except if items are deleted from last).
To Reproduce
Steps to reproduce the behavior:
- Open the Playground
- Delete item 3.
- Now, click on item 4.
- Details of item 5 is shown (error).
- Or click on item 5, no details are shown.
Expected behavior
Items 4 and 5 should be accessible after 3 is deleted.
Screenshots


Additional context
It could be an issue with how the action removeItem is handled or in reducer state management.
Describe the bug
There is a mismatch while displaying the details of the Active item in the toolbar once an item is deleted (except if items are deleted from last).
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Items 4 and 5 should be accessible after 3 is deleted.
Screenshots


Additional context
It could be an issue with how the action
removeItemis handled or in reducer state management.