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

fix stateful polling of editions

This commit is contained in:
Tim Daubenschütz 2015-07-10 19:11:57 +02:00
parent cbb965c264
commit f7618d18f5

View File

@ -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();
}
},