1
0
mirror of https://github.com/ascribe/onion.git synced 2025-01-03 18:35:09 +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() { fetchSelectedPieceEditionList() {
let filteredPieceIdList = Object.keys(this.state.editionList) let filteredPieceIdList = Object.keys(this.state.editionList)
.filter((pieceId) => { .filter((pieceId) => {
return this.state.editions.editionList[pieceId] return this.state.editionList[pieceId]
.filter((edition) => edition.selected).length > 0; .filter((edition) => edition.selected).length > 0;
}); });
return filteredPieceIdList; return filteredPieceIdList;

View File

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