Fix for sorting task statuses

This commit is contained in:
Hillel Coren 2023-05-23 18:28:32 +03:00
parent 16f21ebd27
commit dc88dd3f01
1 changed files with 4 additions and 3 deletions

View File

@ -73,9 +73,10 @@ class _TaskStatusListState extends State<TaskStatusList> {
if (newIndex > widget.viewModel.taskStatusList.length) {
newIndex = widget.viewModel.taskStatusList.length;
}
if (oldIndex < newIndex) {
newIndex--;
}
//if (oldIndex < newIndex) {
// newIndex--;
//}
widget.viewModel.onSortChanged(oldIndex, newIndex);
},