1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

fix config context if value passed by props not getting overwritten

This commit is contained in:
John Mitchell 2019-04-18 13:53:05 -04:00
parent 5030eb35b6
commit ce49cb9ba4
No known key found for this signature in database
GPG Key ID: FE6A9B5BD4EB5C94

View File

@ -24,8 +24,11 @@ class Provider extends Component {
} }
componentDidMount () { componentDidMount () {
const { value } = this.props;
if (!value) {
this.fetchConfig(); this.fetchConfig();
} }
}
async fetchConfig () { async fetchConfig () {
const { api, handleHttpError } = this.props; const { api, handleHttpError } = this.props;