Merge pull request #3317 from shockey/bug/3166-incorrect-schemes
Trigger setScheme when a new set of schemes come in
This commit is contained in:
@@ -20,6 +20,12 @@ export default class Schemes extends React.Component {
|
||||
this.setScheme( e.target.value )
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
if(nextProps.schemes !== this.props.schemes) {
|
||||
this.setScheme(nextProps.schemes.first())
|
||||
}
|
||||
}
|
||||
|
||||
setScheme =( value ) => {
|
||||
let { path, method, specActions } = this.props
|
||||
|
||||
|
||||
Reference in New Issue
Block a user