Skip to content

Conversation

@omaralbeik
Copy link
Contributor

Changes

Fixed a bug in Todos example app where moving items returns the wrong todos indices if the completed filter is enabled

The issue is happening because the source and destination are captured from the filteredTodos array while the move operation is happening in the original todos array

Before/After

Before After
Before After

Copy link
Member

@stephencelis stephencelis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good find! 😅

Thanks for the fix and test!

@stephencelis stephencelis merged commit 02cf759 into pointfreeco:main Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants