diff --git a/application/src/components/services/add-service/ServiceNotificationFields.tsx b/application/src/components/services/add-service/ServiceNotificationFields.tsx index 7e3d719..0972b3a 100644 --- a/application/src/components/services/add-service/ServiceNotificationFields.tsx +++ b/application/src/components/services/add-service/ServiceNotificationFields.tsx @@ -39,10 +39,12 @@ export function ServiceNotificationFields({ form }: ServiceNotificationFieldsPro // Update alert configs when data is loaded useEffect(() => { if (alertConfigsData) { - setAlertConfigs(alertConfigsData); + // Only show enabled channels + const enabledChannels = alertConfigsData.filter(config => config.enabled); + setAlertConfigs(enabledChannels); // Debug log to check what alert configs are loaded - console.log("Loaded alert configurations:", alertConfigsData); + console.log("Loaded alert configurations:", enabledChannels); } }, [alertConfigsData]); @@ -136,4 +138,4 @@ export function ServiceNotificationFields({ form }: ServiceNotificationFieldsPro /> ); -} +} \ No newline at end of file