diff --git a/frontend-modern/src/features/alerts/AlertCooldownSection.tsx b/frontend-modern/src/features/alerts/AlertCooldownSection.tsx index cab1b86672..676176a838 100644 --- a/frontend-modern/src/features/alerts/AlertCooldownSection.tsx +++ b/frontend-modern/src/features/alerts/AlertCooldownSection.tsx @@ -1,11 +1,6 @@ -import { Show } from 'solid-js'; +import { Show, createUniqueId } from 'solid-js'; -import { - controlClass, - formHelpText, - formField, - labelClass, -} from '@/components/shared/Form'; +import { controlClass, formHelpText, formField, labelClass } from '@/components/shared/Form'; import { SettingsPanel } from '@/components/shared/SettingsPanel'; import { Toggle } from '@/components/shared/Toggle'; import { @@ -30,6 +25,12 @@ interface AlertCooldownSectionProps { } export function AlertCooldownSection(props: AlertCooldownSectionProps) { + const fieldIdPrefix = `alert-cooldown-${createUniqueId()}`; + const fieldIds = { + minutes: `${fieldIdPrefix}-minutes`, + maxAlerts: `${fieldIdPrefix}-max-alerts`, + }; + return (
-