1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 09:23:13 +01:00

fix globals lint errors and edition creation - 0 editions - bug

This commit is contained in:
Tim Daubenschütz 2015-07-17 10:30:05 +02:00
parent 8e38e9e8de
commit 8cad3b521b
2 changed files with 6 additions and 6 deletions

View File

@ -31,6 +31,11 @@
"react/sort-comp": 1,
"react/wrap-multilines": 1
},
"globals": {
"Raven": true,
"Intercom": true,
"fetch": true
}
"plugins": [
"react"
],

View File

@ -95,12 +95,7 @@ let AccordionListItem = React.createClass({
},
onPollingSuccess(pieceId, numEditions) {
PieceListActions.updatePropertyForPiece({
pieceId,
key: 'num_editions',
value: numEditions
});
PieceListActions.fetchPieceList(this.state.page, this.state.pageSize, this.state.search, this.state.orderBy, this.state.orderAsc);
EditionListActions.toggleEditionList(pieceId);
let notification = new GlobalNotificationModel('Editions successfully created', 'success', 10000);