diff --git a/app/services/ems_dashboard_service.rb b/app/services/ems_dashboard_service.rb index ffd08ee0d0e..35e5eb2872c 100644 --- a/app/services/ems_dashboard_service.rb +++ b/app/services/ems_dashboard_service.rb @@ -68,7 +68,7 @@ def format_data(resource, attributes, attr_icon, attr_url, attr_hsh) :title => attr_hsh[attr], :count => @ems.send(attr).count, :href => get_url(resource, @ems_id, attr_url[attr]), - ) + ) unless @ems.send(attr).nil? end attr_data end