From dcb7f028d892b2ff259387d1852a097eb6312688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Tue, 21 Sep 2021 09:37:28 +0200 Subject: [PATCH] Fix alert for multiple integrations (#19410) --- source/_layouts/page.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source/_layouts/page.html b/source/_layouts/page.html index 9363a8a4e69..7381c7161c2 100644 --- a/source/_layouts/page.html +++ b/source/_layouts/page.html @@ -13,9 +13,11 @@ layout: default {% if page.collection == "integrations" %} {% assign active_alert = "" %} {% for alert in site.data.alerts_data %} - {% if alert.integrations and alert.integrations[0].package == page.ha_domain %} - {% assign active_alert = alert.alert_url %} - {% endif %} + {% for integration in alert.integrations %} + {% if integration.package == page.ha_domain %} + {% assign active_alert = alert.alert_url %} + {% endif %} + {% endfor %} {% endfor %} {% if active_alert != "" %}