mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: stack integration disable button mutation issue in project settings. (#3402)
This commit is contained in:
parent
615ccf9459
commit
6e1cd4194a
@ -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(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user