mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
Update app/models/todos/undone_todos_query.rb
Co-Authored-By: Matt Rogers <mattr-@github.com>
This commit is contained in:
parent
d784b1a5eb
commit
7fc1f1bf9f
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ module Todos
|
|||
|
||||
if params[:tag]
|
||||
tag = Tag.where(:name => params[:tag]).first
|
||||
if not tag
|
||||
return [] if !tag
|
||||
return []
|
||||
end
|
||||
not_done_todos = not_done_todos.joins(:taggings).where('taggings.tag_id = ?', tag.id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue