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 )
|
this.setScheme( e.target.value )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
componentWillReceiveProps(nextProps) {
|
||||||
|
if(nextProps.schemes !== this.props.schemes) {
|
||||||
|
this.setScheme(nextProps.schemes.first())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
setScheme =( value ) => {
|
setScheme =( value ) => {
|
||||||
let { path, method, specActions } = this.props
|
let { path, method, specActions } = this.props
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user