update it
This commit is contained in:
parent
c1c0a40f7e
commit
899234ce25
|
@ -171,6 +171,10 @@ class Edit extends Component {
|
|||
this.state = this.getStateFromProps(props);
|
||||
}
|
||||
|
||||
componentWillMount() {
|
||||
this.setState(this.getStateFromProps(this.props));
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
this.setState(this.getStateFromProps(nextProps));
|
||||
}
|
||||
|
|
|
@ -61,6 +61,14 @@ class Document extends Component {
|
|||
disableValidation: false
|
||||
}
|
||||
|
||||
componentWillMount() {
|
||||
const { subscriber, dispatch } = this.props
|
||||
|
||||
if (subscriber.needsFetch) {
|
||||
dispatch(subscriber.fetch)
|
||||
}
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
const { subscriber, status } = nextProps
|
||||
const { dispatch, action, onHide } = this.props
|
||||
|
|
Loading…
Reference in New Issue