mirror of
https://github.com/ascribe/onion.git
synced 2025-01-09 05:06:59 +01:00
Fix consign form when labels aren't give as props
This commit is contained in:
parent
c270977eb9
commit
0c02c033e5
@ -24,6 +24,12 @@ let ConsignForm = React.createClass({
|
|||||||
handleSuccess: React.PropTypes.func
|
handleSuccess: React.PropTypes.func
|
||||||
},
|
},
|
||||||
|
|
||||||
|
getInitialProps() {
|
||||||
|
return {
|
||||||
|
labels: {}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
|
||||||
getFormData() {
|
getFormData() {
|
||||||
return this.props.id;
|
return this.props.id;
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user