1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-25 18:56:28 +02:00

Fix consign form when labels aren't give as props

This commit is contained in:
Brett Sun 2015-11-27 23:53:54 +01:00
parent c270977eb9
commit 0c02c033e5

View File

@ -24,7 +24,13 @@ let ConsignForm = React.createClass({
handleSuccess: React.PropTypes.func
},
getFormData(){
getInitialProps() {
return {
labels: {}
};
},
getFormData() {
return this.props.id;
},