Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make OneClickController#dashboard robust in face of Member#to_event s…

…ometimes returning nil.
  • Loading branch information...
commit e42559d666eeccde91bad665b67c082295ab510e 1 parent 3287bf5
@chrismear chrismear authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/controllers/one_click_controller.rb
View
2  app/controllers/one_click_controller.rb
@@ -21,7 +21,7 @@ def dashboard
co.members.all,
co.proposals.all,
co.decisions.all
- ].flatten.map(&:to_event).sort{|a, b| b[:timestamp] <=> a[:timestamp]}
+ ].flatten.map(&:to_event).compact.sort{|a, b| b[:timestamp] <=> a[:timestamp]}
end
def settings
Please sign in to comment.
Something went wrong with that request. Please try again.