Fix jwt-token

This commit is contained in:
2025-09-23 10:23:44 +02:00
parent 1fe5981095
commit cfbe4cc389
2 changed files with 16 additions and 1 deletions

View File

@@ -63,6 +63,16 @@ const Alerts = () => {
// Show loading if either alerts or drone types are loading
const isLoading = loading || droneTypesLoading;
// DEBUG: Validate state integrity
useEffect(() => {
console.log('DEBUG: Alerts state check', {
alertRules: alertRules?.length,
alertLogs: alertLogs?.length,
alertStats: alertStats ? 'present' : 'null',
invalidRules: alertRules?.filter(rule => typeof rule.alert_channels === 'object' && !Array.isArray(rule.alert_channels))
});
}, [alertRules, alertLogs, alertStats]);
// Group alerts by alert_event_id to show related alerts together
const groupAlertsByEvent = (logs) => {
const grouped = {};