Commit 3f3bdece authored by Timothy Andrew's avatar Timothy Andrew

Do _not_ set `stats` to `null` when data is not available.

- For cycle analytics.
- Instead, make each individual `value` `null`, since the titles and
  descriptions are used by the frontend even when there is no data.
parent 4531e433
...@@ -21,8 +21,6 @@ module CycleAnalyticsHelper ...@@ -21,8 +21,6 @@ module CycleAnalyticsHelper
stats stats
end end
stats = nil if stats.all? { |stat| stat[:value].nil? }
summary = [ summary = [
{ title: "New Issues", value: cycle_analytics.summary.new_issues }, { title: "New Issues", value: cycle_analytics.summary.new_issues },
{ title: "Commits", value: cycle_analytics.summary.commits }, { title: "Commits", value: cycle_analytics.summary.commits },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment