yyqdbngt opened a new pull request, #2109:
URL: https://github.com/apache/rocketmq-dashboard/pull/2109

   ## What is the purpose of the change
   
   Fix #2066.
   
   The system alerts page called normalizeAlertLevel(alert.level) which did 
alert.level.toLowerCase() without guarding null, crashing when a backend alert 
has no level.
   
   ## Brief changelog
   
   - systemAlerts.tsx: normalizeAlertLevel guards with (level ?? '')
   
   ## How was this patch verified
   
   - npx vitest run src/pages/ops/__tests__/SystemAlertsPage.test.tsx (passed)
   - npx tsc -b clean
   - npx eslint . clean
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to