mirror of
https://github.com/ascribe/onion.git
synced 2025-01-10 21:18:38 +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() {
|
componentDidUpdate() {
|
||||||
if(this.props.content.num_editions === 0) {
|
if(this.props.content.num_editions === 0 && typeof this.state.pollingIntervalIndex == 'undefined') {
|
||||||
this.startPolling();
|
this.startPolling();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user