mirror of
https://github.com/gurnec/removeddit.git
synced 2026-03-11 08:54:27 +00:00
Fix small race condition in 245bfe1
This commit is contained in:
parent
0cc254eb20
commit
882b0cf73e
1 changed files with 3 additions and 1 deletions
|
|
@ -44,8 +44,10 @@ class Thread extends React.Component {
|
|||
}
|
||||
this.setState({ post: removedPost })
|
||||
})
|
||||
} else if (post.removed_by_category)
|
||||
} else if (post.removed_by_category) {
|
||||
post.removed = true
|
||||
this.setState({ post })
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
this.props.global.setError(error)
|
||||
|
|
|
|||
Loading…
Reference in a new issue