From 3f687abf2b56099c97a4d7e7c12c162aa0f6ec25 Mon Sep 17 00:00:00 2001 From: Alexander Borg Date: Tue, 23 Sep 2025 12:28:43 +0200 Subject: [PATCH] Fix jwt-token --- client/src/pages/Alerts.jsx | 9 ++------- client/src/utils/tempTranslations.js | 4 ++-- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/client/src/pages/Alerts.jsx b/client/src/pages/Alerts.jsx index 291d8bf..b364a88 100644 --- a/client/src/pages/Alerts.jsx +++ b/client/src/pages/Alerts.jsx @@ -372,11 +372,7 @@ const Alerts = () => { - {(alertRules || []).map((rule) => { - // DEBUG: Aggressive debugging for this specific rule - console.log('🔍 Rendering rule:', rule.id, 'alert_channels:', rule.alert_channels, 'type:', typeof rule.alert_channels); - - return ( + {(alertRules || []).map((rule) => (
@@ -530,8 +526,7 @@ const Alerts = () => {
- ); - })} + ))} diff --git a/client/src/utils/tempTranslations.js b/client/src/utils/tempTranslations.js index 06e4627..26eb5a1 100644 --- a/client/src/utils/tempTranslations.js +++ b/client/src/utils/tempTranslations.js @@ -544,7 +544,7 @@ const translations = { high: 'High', critical: 'Critical' }, - channels: { + channelTypes: { sms: 'SMS', webhook: 'Webhook', email: 'Email' @@ -1163,7 +1163,7 @@ const translations = { high: 'Hög', critical: 'Kritisk' }, - channels: { + channelTypes: { sms: 'SMS', webhook: 'Webhook', email: 'E-post'