mirror of
https://github.com/gurnec/removeddit.git
synced 2026-03-11 08:54:27 +00:00
Fix bug where status is sometimes stuck "loading"
This was introduced in 9e343fc. There may still be a race condition
here, however it should occur far less frequently than before.
This commit is contained in:
parent
9c102b9dc1
commit
854f56e6f2
1 changed files with 4 additions and 1 deletions
|
|
@ -60,7 +60,10 @@ class Thread extends React.Component {
|
|||
this.setState({ post: { subreddit, id: threadID } })
|
||||
})
|
||||
})
|
||||
.finally(() => this.props.global.setLoading('Loading comments from Pushshift...'))
|
||||
.finally(() => {
|
||||
if (this.state.loadingComments)
|
||||
this.props.global.setLoading('Loading comments from Pushshift...')
|
||||
})
|
||||
|
||||
// Get comment ids from pushshift
|
||||
getPushshiftComments(threadID)
|
||||
|
|
|
|||
Loading…
Reference in a new issue