Skip to content

Commit

Permalink
Quick fix delete slack connector when no Slack app installed anymore (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
PopDaph authored Oct 24, 2023
1 parent a0426f9 commit b2f2331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connectors/src/connectors/slack/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ export async function cleanupSlackConnector(
client_id: SLACK_CLIENT_ID,
client_secret: SLACK_CLIENT_SECRET,
});
if (!deleteRes.ok) {
if (deleteRes && !deleteRes.ok) {
return new Err(
new Error(
`Could not uninstall the Slack app from the user's workspace. Error: ${deleteRes.error}`
Expand Down

0 comments on commit b2f2331

Please sign in to comment.