app/views/mno_enterprise/jpi/v1/impac/kpis/_kpi.json.jbuilder in mno-enterprise-api-3.3.1 vs app/views/mno_enterprise/jpi/v1/impac/kpis/_kpi.json.jbuilder in mno-enterprise-api-3.3.2
- old
+ new
@@ -1,4 +1,4 @@
json.ignore_nil!
json.extract! kpi, :id, :element_watched, :endpoint, :source, :targets, :settings, :extra_watchables, :extra_params
-json.alerts kpi.alerts, partial: 'mno_enterprise/jpi/v1/impac/alerts/alert', as: :alert if kpi.alerts.any?
+json.alerts kpi.alerts, partial: 'mno_enterprise/jpi/v1/impac/alerts/alert', as: :alert if kpi.alerts.to_a.any?