Reorder the todos because the use of the project finder attempts to order them differently
This commit is contained in:
parent
14a9b0d7dd
commit
f0ca487cd5
|
@ -30,7 +30,7 @@ class TodosFinder
|
|||
items = by_state(items)
|
||||
items = by_type(items)
|
||||
|
||||
items
|
||||
items.reorder(id: :desc)
|
||||
end
|
||||
|
||||
private
|
||||
|
@ -84,7 +84,7 @@ class TodosFinder
|
|||
if project?
|
||||
@projects = project
|
||||
else
|
||||
@projects = ProjectsFinder.new.execute(current_user).reorder(nil)
|
||||
@projects = ProjectsFinder.new.execute(current_user)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue