diff options
author | Timothy Andrew <mail@timothyandrew.net> | 2016-09-19 15:12:01 +0530 |
---|---|---|
committer | Timothy Andrew <mail@timothyandrew.net> | 2016-09-19 15:12:01 +0530 |
commit | 3f3bdeced1e2e1f35b9f8e37a45f46233ee5cb58 (patch) | |
tree | ebb2231abafcabd697b7227927019fa8f858eb5f /app/helpers | |
parent | 4531e433ad33e67cb66abaa4626b5e608eb11f11 (diff) | |
download | gitlab-ce-3f3bdeced1e2e1f35b9f8e37a45f46233ee5cb58.tar.gz |
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.
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/cycle_analytics_helper.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/app/helpers/cycle_analytics_helper.rb b/app/helpers/cycle_analytics_helper.rb index d397b02a3aa..c0d1eb56fd3 100644 --- a/app/helpers/cycle_analytics_helper.rb +++ b/app/helpers/cycle_analytics_helper.rb @@ -21,8 +21,6 @@ module CycleAnalyticsHelper stats end - stats = nil if stats.all? { |stat| stat[:value].nil? } - summary = [ { title: "New Issues", value: cycle_analytics.summary.new_issues }, { title: "Commits", value: cycle_analytics.summary.commits }, |