summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Andrew <mail@timothyandrew.net>2016-09-19 15:12:01 +0530
committerTimothy Andrew <mail@timothyandrew.net>2016-09-19 15:12:01 +0530
commit3f3bdeced1e2e1f35b9f8e37a45f46233ee5cb58 (patch)
treeebb2231abafcabd697b7227927019fa8f858eb5f
parent4531e433ad33e67cb66abaa4626b5e608eb11f11 (diff)
downloadgitlab-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.
-rw-r--r--app/helpers/cycle_analytics_helper.rb2
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 },