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:
parent
98d26f5ed7
commit
8a17208643
@ -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;
|
||||
|
@ -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);
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user