conditional simplification as reqeusted
This commit is contained in:
1 parent
f0a6fc4fdf
commit
420164d616
1 file changed
+1
-1
@@ -265,7 +265,7 @@ class StatusPageModule {
|
||||
|
||||
const normalizedMonitors = monitors.map((monitor) => {
|
||||
const normalizedChecks = this.NormalizeData(monitor.checks, 10, 100);
|
||||
if (showURL !== true) {
|
||||
if (!showURL) {
|
||||
const { url, port, secret, notifications, ...rest } = monitor;
|
||||
return { ...rest, checks: normalizedChecks };
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user