diff --git a/.eslintrc b/.eslintrc index 869e2d3d..ac35bb10 100644 --- a/.eslintrc +++ b/.eslintrc @@ -31,6 +31,11 @@ "react/sort-comp": 1, "react/wrap-multilines": 1 }, + "globals": { + "Raven": true, + "Intercom": true, + "fetch": true + } "plugins": [ "react" ], diff --git a/js/components/ascribe_accordion_list/accordion_list_item.js b/js/components/ascribe_accordion_list/accordion_list_item.js index 2820cce3..54d19078 100644 --- a/js/components/ascribe_accordion_list/accordion_list_item.js +++ b/js/components/ascribe_accordion_list/accordion_list_item.js @@ -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);