Skip to content

Commit

Permalink
handle nil values in dashbaord trend data
Browse files Browse the repository at this point in the history
  • Loading branch information
Ari Zellner committed Dec 4, 2017
1 parent e4e87c6 commit fdd97c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/container_service_mixin.rb
Expand Up @@ -70,7 +70,7 @@ def trend_data(trend)
if trend.any?
{
:xData => trend.keys,
:yData => trend.values.map(&:round)
:yData => trend.values.map{ |value| (value || 0 ).round}
}
end
end
Expand Down

0 comments on commit fdd97c5

Please sign in to comment.