1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 01:25:17 +01:00

fix bug in edition detail

This commit is contained in:
Tim Daubenschütz 2015-06-30 09:23:26 +02:00
parent 31e3c23302
commit e7f29cd973

View File

@ -506,6 +506,7 @@ let EditionFurtherDetails = React.createClass({
let FileUploader = React.createClass({ let FileUploader = React.createClass({
propTypes: { propTypes: {
edition: React.PropTypes.object,
setIsUploadReady: React.PropTypes.func, setIsUploadReady: React.PropTypes.func,
submitKey: React.PropTypes.func, submitKey: React.PropTypes.func,
isReadyForFormSubmission: React.PropTypes.func isReadyForFormSubmission: React.PropTypes.func
@ -536,7 +537,7 @@ let FileUploader = React.createClass({
'X-CSRFToken': getCookie('csrftoken') 'X-CSRFToken': getCookie('csrftoken')
}, },
params: { params: {
'pk': this.props.edition.other_data.id 'pk': this.props.edition.other_data ? this.props.edition.other_data.id : null
} }
}}/> }}/>
); );