From 8cad3b521bef2ce570ad1a08b4fa6e96c26e1026 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Fri, 17 Jul 2015 10:30:05 +0200 Subject: [PATCH] fix globals lint errors and edition creation - 0 editions - bug --- .eslintrc | 5 +++++ .../ascribe_accordion_list/accordion_list_item.js | 7 +------ 2 files changed, 6 insertions(+), 6 deletions(-) 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);