mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 15:20:13 +01:00
fix cache invariant for grouped todos in context and project view
This commit is contained in:
parent
1ae6e13f1d
commit
f4908f2b7b
3 changed files with 6 additions and 2 deletions
|
|
@ -294,5 +294,9 @@ module ApplicationHelper
|
|||
})
|
||||
end
|
||||
|
||||
def source_view_key
|
||||
# uses @project.id or @context.id depending on source_view
|
||||
source_view_is_one_of(:project, :context) ? "#{@source_view}-#{eval("@#{@source_view}.id")}" : @source_view
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue