From 5155018a38d717f167c9e9794067a4013da66c3a Mon Sep 17 00:00:00 2001 From: Kyle Johnson Date: Wed, 5 Jun 2024 09:37:49 +0100 Subject: [PATCH] fix: Reload integrations on create (#4106) --- frontend/web/components/IntegrationList.js | 3 +-- frontend/web/components/modals/CreateEditIntegrationModal.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/web/components/IntegrationList.js b/frontend/web/components/IntegrationList.js index a5d84d6b1b8d..c236a1a087d9 100644 --- a/frontend/web/components/IntegrationList.js +++ b/frontend/web/components/IntegrationList.js @@ -290,7 +290,6 @@ class IntegrationList extends Component { } }), ).then((res) => { - console.log(res) this.setState({ activeIntegrations: _.map(res, (item) => !!item && item.length ? item : [], @@ -375,7 +374,7 @@ class IntegrationList extends Component { } githubMeta={{ githubId: githubId, installationId: installationId }} projectId={this.props.projectId} - onComplete={githubId ? this.fetch : this.fetchGithubIntegration} + onComplete={githubId ? this.fetchGithubIntegration : this.fetch } />, 'side-modal', ) diff --git a/frontend/web/components/modals/CreateEditIntegrationModal.js b/frontend/web/components/modals/CreateEditIntegrationModal.js index 008c320bb544..9872dd64b033 100644 --- a/frontend/web/components/modals/CreateEditIntegrationModal.js +++ b/frontend/web/components/modals/CreateEditIntegrationModal.js @@ -69,7 +69,7 @@ const CreateEditIntegration = class extends Component { const isEdit = this.props.data && this.props.data.id Utils.preventDefault(e) if (this.props.integration.isExternalInstallation) { - closeModal() + this.onComplete() } if (this.state.isLoading) { return