Skip to content

Commit

Permalink
Merge pull request #5152 from systeminit/fix/integrations-endpoint-ca…
Browse files Browse the repository at this point in the history
…n-be-null

Fix: integrations endpoint can be null
  • Loading branch information
stack72 authored Dec 18, 2024
2 parents 3728187 + 1c7ae75 commit d254784
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions app/web/src/store/workspaces.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,12 @@ export const useWorkspacesStore = () => {
method: "get",
url: `v2/workspaces/${this.selectedWorkspacePk}/integrations`,
onSuccess: (response) => {
this.integrations = {
pk: response.integration.pk,
workspaceId: response.integration.workspace_pk,
slackWebhookUrl: response.integration.slack_webhook_url,
};
if (response)
this.integrations = {
pk: response.integration.pk,
workspaceId: response.integration.workspace_pk,
slackWebhookUrl: response.integration.slack_webhook_url,
};
},
});
},
Expand Down

0 comments on commit d254784

Please sign in to comment.