From 1adb38655ad2ea8546b14c73b4bc09a4e43cce07 Mon Sep 17 00:00:00 2001 From: Prateek Shourya Date: Thu, 18 Jan 2024 12:31:10 +0530 Subject: [PATCH] fix: stack integration disable button mutation issue in project settings. (#3402) --- web/components/integration/slack/select-channel.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(() => {