Skip to content

Commit

Permalink
fix: Reload integrations on create (#4106)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-ssg authored Jun 5, 2024
1 parent 902b3cd commit 5155018
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions frontend/web/components/IntegrationList.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,6 @@ class IntegrationList extends Component {
}
}),
).then((res) => {
console.log(res)
this.setState({
activeIntegrations: _.map(res, (item) =>
!!item && item.length ? item : [],
Expand Down Expand Up @@ -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',
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5155018

Please sign in to comment.