From 882b0cf73e3b5bf719a94c0be211972a5947a06c Mon Sep 17 00:00:00 2001 From: Christopher Gurnee Date: Fri, 3 Dec 2021 11:23:01 -0500 Subject: [PATCH] Fix small race condition in 245bfe1 --- src/pages/thread/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/thread/index.js b/src/pages/thread/index.js index 1b07343..24c8d39 100644 --- a/src/pages/thread/index.js +++ b/src/pages/thread/index.js @@ -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)