diff --git a/frontend/src/pages/Deploy/Team/List/components/NotificationConfigDialog.tsx b/frontend/src/pages/Deploy/Team/List/components/NotificationConfigDialog.tsx index d176dc1c..363d668c 100644 --- a/frontend/src/pages/Deploy/Team/List/components/NotificationConfigDialog.tsx +++ b/frontend/src/pages/Deploy/Team/List/components/NotificationConfigDialog.tsx @@ -77,7 +77,9 @@ type FormData = z.infer; interface NotificationChannel { id: number; name: string; - type: string; + channelType: string; + enabled?: boolean; + description?: string; } interface NotificationTemplate { @@ -219,7 +221,7 @@ export const NotificationConfigDialog: React.FC< const selectedChannel = notificationChannels.find( (channel) => channel.id === selectedChannelId ); - loadNotificationTemplates(selectedChannel?.type); + loadNotificationTemplates(selectedChannel?.channelType); } }, [selectedChannelId, notificationChannels, open]); @@ -343,7 +345,7 @@ export const NotificationConfigDialog: React.FC< key={channel.id} value={channel.id.toString()} > - {channel.name} ({channel.type}) + {channel.name} ({channel.channelType}) ))}