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:
parent
cbb965c264
commit
f7618d18f5
@ -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();
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user