diff --git a/packages/server/src/components/NotificationsModal.tsx b/packages/server/src/components/NotificationsModal.tsx index 5178197..12e2b7e 100644 --- a/packages/server/src/components/NotificationsModal.tsx +++ b/packages/server/src/components/NotificationsModal.tsx @@ -262,12 +262,18 @@ export function NotificationsModal({ open, onClose }: { open: boolean; onClose: if (f.requires && !fields[f.requires]?.trim()) return null const isSlackChannel = adding === 'slack' && f.key === 'channel' const picked = isSlackChannel ? slackChannels?.find((c) => c.id === fields.channel) : undefined + // One id per field, shared by the two mutually exclusive control branches + // below (only ever one is rendered), so the visible label names the control. + const fieldId = `notif-field-${f.key}` return (