It seems that moving blocks (via Drag-and-Drop OR via BlockTune) doesn't behave consistently.
Current behavior
Move via Drag and Drop to last position.
Press Undo-Combination
First Paragraph is missing. Last two Paragraphs are duplicate
Expected behavior
Move via Drag and Drop to last position
Press Undo-Combination
First and Last Paragraph should be switched correctly
Solution
Solves #117
By removing an unnncesary comparation between component indexes which was the responsible of this swaping error, this error is now fixed. This was happening because of the inital state of the app and the inital behaviour of the drag'n drop component, where the two indexes matched making the droppable condition to fail, and insted of the drop action it executes the default one. And because of the other state comparision is not necesary to compare indexes to assure a correct behaviour of the functionality
Context
It seems that moving blocks (via Drag-and-Drop OR via BlockTune) doesn't behave consistently.
Current behavior
Expected behavior
Solution
Solves #117 By removing an unnncesary comparation between component indexes which was the responsible of this swaping error, this error is now fixed. This was happening because of the inital state of the app and the inital behaviour of the drag'n drop component, where the two indexes matched making the droppable condition to fail, and insted of the drop action it executes the default one. And because of the other state comparision is not necesary to compare indexes to assure a correct behaviour of the functionality