Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

style(truenas): prettier-format the unknown-health condition

rcourtman5db3396d78f0
diff --git a/frontend-modern/src/features/truenas/truenasPageModel.ts b/frontend-modern/src/features/truenas/truenasPageModel.ts
index e0c0feb2d5..70237150ce 100644
--- a/frontend-modern/src/features/truenas/truenasPageModel.ts
+++ b/frontend-modern/src/features/truenas/truenasPageModel.ts
@@ -698,10 +698,7 @@ export function mapTrueNASStorageStatus(
// The TrueNAS disk API carries no SMART/health field, so "unknown" is the
// normal state of a healthy disk, not a warning signal (#1573). Only an
// affirmatively bad health value earns the attention bucket.
- if (
- diskHealth &&
- !['passed', 'healthy', 'ok', 'unknown', 'unavailable'].includes(diskHealth)
- ) {
+ if (diskHealth && !['passed', 'healthy', 'ok', 'unknown', 'unavailable'].includes(diskHealth)) {
return 'attention';
}
if (['online', 'running', 'healthy'].includes(status)) return 'healthy';