diff --git a/web/components/integration/slack/select-channel.tsx b/web/components/integration/slack/select-channel.tsx index 35ba358c8..57fb82319 100644 --- a/web/components/integration/slack/select-channel.tsx +++ b/web/components/integration/slack/select-channel.tsx @@ -66,8 +66,9 @@ export const SelectChannel: React.FC = observer(({ integration }) => { }, [projectIntegration, projectId]); const handleDelete = async () => { + if (!workspaceSlug || !projectId) return; if (projectIntegration.length === 0) return; - mutate(SLACK_CHANNEL_INFO, (prevData: any) => { + mutate(SLACK_CHANNEL_INFO(workspaceSlug?.toString(), projectId?.toString()), (prevData: any) => { if (!prevData) return; return prevData.id !== integration.id; }).then(() => {