提交 3f3bdece 编写于 作者: T 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.
上级 4531e433
......@@ -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 },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册