Skip to content

Commit

Permalink
fix: Fix the ParamsModal has mounted should not request data
Browse files Browse the repository at this point in the history
  • Loading branch information
harrisonliu5 committed Jul 10, 2020
1 parent 60213c7 commit 2ec9ae2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/components/Forms/CICDs/paramsModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,6 @@ export default class ParamsModal extends React.Component {
})
}

componentDidMount() {
this.init()
}

componentDidUpdate(prevProps) {
const { visible } = this.props
const { visible: prevVisible } = prevProps
Expand Down Expand Up @@ -231,7 +227,7 @@ export default class ParamsModal extends React.Component {
}

getParametersFromBranch = async branch => {
const { params } = this.props.params
const { params } = this.props
const result = await this.store.getBranchDetail({ branch, ...params })
return get(result, 'parameters', null)
}
Expand Down

0 comments on commit 2ec9ae2

Please sign in to comment.