From 539dc9495b5a0bd1f01cfecccbc1e5b698f6736f Mon Sep 17 00:00:00 2001 From: rcourtman Date: Sat, 11 Oct 2025 11:52:09 +0000 Subject: [PATCH] fix: show offline alerts toggle only once per PMG instance Each of the 4 PMG threshold tables was showing its own offline alerts column, resulting in 4 duplicate toggles per instance. Now only the first table displays the offline alerts column since the setting is per-instance, not per-threshold-group. --- frontend-modern/src/components/Alerts/ThresholdsTable.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend-modern/src/components/Alerts/ThresholdsTable.tsx b/frontend-modern/src/components/Alerts/ThresholdsTable.tsx index 5b3747612..77ef27daf 100644 --- a/frontend-modern/src/components/Alerts/ThresholdsTable.tsx +++ b/frontend-modern/src/components/Alerts/ThresholdsTable.tsx @@ -1850,7 +1850,7 @@ const dockerContainersGroupedByHost = createMemo>((pr >
- {(group) => ( + {(group, index) => (
>((pr onRemoveOverride={removeOverride} onToggleDisabled={toggleDisabled} onToggleNodeConnectivity={toggleNodeConnectivity} - showOfflineAlertsColumn={true} + showOfflineAlertsColumn={index() === 0} editingId={editingId} editingThresholds={editingThresholds} setEditingThresholds={setEditingThresholds}