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