Skip to content

Commit

Permalink
fix: stack integration disable button mutation issue in project setti…
Browse files Browse the repository at this point in the history
…ngs. (#3402)
  • Loading branch information
prateekshourya29 authored and sriramveeraghanta committed Jan 22, 2024
1 parent d6f2f55 commit 8d94375
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/components/integration/slack/select-channel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ export const SelectChannel: React.FC<Props> = 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(() => {
Expand Down

0 comments on commit 8d94375

Please sign in to comment.