conditional simplification as reqeusted

This commit is contained in:
Craig Lawson committed 2026-01-15 12:52:11 +00:00
1 parent f0a6fc4fdf
commit 420164d616
1 file changed
+1 -1
+1 -1
View File
@@ -265,7 +265,7 @@ class StatusPageModule {
const normalizedMonitors = monitors.map((monitor) => { const normalizedMonitors = monitors.map((monitor) => {
const normalizedChecks = this.NormalizeData(monitor.checks, 10, 100); const normalizedChecks = this.NormalizeData(monitor.checks, 10, 100);
if (showURL !== true) { if (!showURL) {
const { url, port, secret, notifications, ...rest } = monitor; const { url, port, secret, notifications, ...rest } = monitor;
return { ...rest, checks: normalizedChecks }; return { ...rest, checks: normalizedChecks };
} }