Fix small race condition in 245bfe1

This commit is contained in:
Christopher Gurnee 2021-12-03 11:23:01 -05:00
parent 0cc254eb20
commit 882b0cf73e

View file

@ -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)