Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Andrew <mail@timothyandrew.net>2016-09-19 12:42:01 +0300
committerTimothy Andrew <mail@timothyandrew.net>2016-09-19 12:42:01 +0300
commit3f3bdeced1e2e1f35b9f8e37a45f46233ee5cb58 (patch)
treeebb2231abafcabd697b7227927019fa8f858eb5f /app/helpers
parent4531e433ad33e67cb66abaa4626b5e608eb11f11 (diff)
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.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 },