mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-03 15:58:50 +01:00
fix failing test
This commit is contained in:
parent
1e84adc91b
commit
1e7e925c39
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ class ContextsController < ApplicationController
|
|||
return
|
||||
end
|
||||
@context = current_user.contexts.build(params['context'])
|
||||
@context.hide! if params['context_state']['hide'] == '1'
|
||||
@context.hide! if params['context_state'] && params['context_state']['hide'] == '1'
|
||||
@saved = @context.save
|
||||
@context_not_done_counts = { @context.id => 0 }
|
||||
respond_to do |format|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue