diff --git a/superset-frontend/src/features/alerts/components/NotificationMethod.tsx b/superset-frontend/src/features/alerts/components/NotificationMethod.tsx index dff2b9e96fea3..17a78697c9a5e 100644 --- a/superset-frontend/src/features/alerts/components/NotificationMethod.tsx +++ b/superset-frontend/src/features/alerts/components/NotificationMethod.tsx @@ -259,7 +259,12 @@ export const NotificationMethod: FunctionComponent = ({ }; useEffect(() => { - if (!slackOptions[0]?.options.length) { + const slackEnabled = options?.some( + option => + option === NotificationMethodOption.Slack || + option === NotificationMethodOption.SlackV2, + ); + if (slackEnabled && !slackOptions[0]?.options.length) { fetchSlackChannels({ types: ['public_channel', 'private_channel'] }) .then(({ json }) => { const { result } = json;