mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-22 03:04:03 +00:00
fix: remove unused index parameter in Settings component
This commit is contained in:
@@ -2147,7 +2147,7 @@ const Settings: Component = () => {
|
||||
|
||||
// Sanitize active alerts
|
||||
if (sanitized.activeAlerts) {
|
||||
sanitized.activeAlerts = sanitized.activeAlerts.map((alert: any, index: number) => ({
|
||||
sanitized.activeAlerts = sanitized.activeAlerts.map((alert: any) => ({
|
||||
...alert,
|
||||
node: sanitizeHostname(alert.node),
|
||||
details: alert.details ? alert.details.replace(/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/g, 'xxx.xxx.xxx.xxx') : alert.details
|
||||
|
||||
Reference in New Issue
Block a user