From f7618d18f5c44300a66ffd3c7358208962456f25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Fri, 10 Jul 2015 19:11:57 +0200 Subject: [PATCH] fix stateful polling of editions --- js/components/ascribe_accordion_list/accordion_list_item.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/components/ascribe_accordion_list/accordion_list_item.js b/js/components/ascribe_accordion_list/accordion_list_item.js index 7458d0f0..dcc60871 100644 --- a/js/components/ascribe_accordion_list/accordion_list_item.js +++ b/js/components/ascribe_accordion_list/accordion_list_item.js @@ -43,7 +43,7 @@ let AccordionListItem = React.createClass({ }, componentDidUpdate() { - if(this.props.content.num_editions === 0) { + if(this.props.content.num_editions === 0 && typeof this.state.pollingIntervalIndex == 'undefined') { this.startPolling(); } },