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_state(items)
|
||||||
items = by_type(items)
|
items = by_type(items)
|
||||||
|
|
||||||
items
|
items.reorder(id: :desc)
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
@ -84,7 +84,7 @@ class TodosFinder
|
||||||
if project?
|
if project?
|
||||||
@projects = project
|
@projects = project
|
||||||
else
|
else
|
||||||
@projects = ProjectsFinder.new.execute(current_user).reorder(nil)
|
@projects = ProjectsFinder.new.execute(current_user)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue