From 8b4b27f359ea0c536e531efa5d7f11d938616a41 Mon Sep 17 00:00:00 2001 From: Matt Visnovsky Date: Tue, 7 May 2024 10:02:05 -0600 Subject: [PATCH] Final cleanup of changes to EditMonitor.vue Reverts unintentional changes committed in: d92003e1726f0dfd3f162973d2f29064a6dbf709 --- src/pages/EditMonitor.vue | 18 +++++++++--------- src/util.ts | 1 + 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/pages/EditMonitor.vue b/src/pages/EditMonitor.vue index a7414ecc4..b8b793249 100644 --- a/src/pages/EditMonitor.vue +++ b/src/pages/EditMonitor.vue @@ -103,19 +103,19 @@ -
+
-
+
-
+
@@ -1183,8 +1183,8 @@ message HealthCheckResponse { // Only groups, not itself, not a decendant result = result.filter( monitor => monitor.type === "group" && - monitor.id !== this.monitor.id && - !this.monitor.childrenIDs?.includes(monitor.id) + monitor.id !== this.monitor.id && + !this.monitor.childrenIDs?.includes(monitor.id) ); // Filter result by active state, weight and alphabetical @@ -1698,9 +1698,9 @@ message HealthCheckResponse { diff --git a/src/util.ts b/src/util.ts index 7d52cb65b..b4a52f508 100644 --- a/src/util.ts +++ b/src/util.ts @@ -642,3 +642,4 @@ export function intHash(str : string, length = 10) : number { // Normalize the hash to the range [0, 10] return (hash % length + length) % length; // Ensure the result is non-negative } +