1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 17:33:14 +01:00

fix bulk modal bug

This commit is contained in:
Tim Daubenschütz 2015-06-08 14:23:19 +02:00
parent 98d26f5ed7
commit 8a17208643
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ let PieceListBulkModal = React.createClass({
fetchSelectedPieceEditionList() {
let filteredPieceIdList = Object.keys(this.state.editionList)
.filter((pieceId) => {
return this.state.editions.editionList[pieceId]
return this.state.editionList[pieceId]
.filter((edition) => edition.selected).length > 0;
});
return filteredPieceIdList;

View File

@ -19,7 +19,7 @@ export const FormMixin = {
this.clearErrors();
fetch
.post(this.url(), { body: this.getFormData() })
.then(() => { this.props.handleSuccess(); })
.then(response => this.props.handleSuccess())
.catch(this.handleError);
},