summaryrefslogtreecommitdiffstats
path: root/web/react/components/rhs_thread.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'web/react/components/rhs_thread.jsx')
-rw-r--r--web/react/components/rhs_thread.jsx7
1 files changed, 7 insertions, 0 deletions
diff --git a/web/react/components/rhs_thread.jsx b/web/react/components/rhs_thread.jsx
index 2f23d80d9..fdcf618d7 100644
--- a/web/react/components/rhs_thread.jsx
+++ b/web/react/components/rhs_thread.jsx
@@ -71,6 +71,13 @@ export default class RhsThread extends React.Component {
return;
}
+ if (!currentSelected.posts[currentSelected.order[0]]) {
+ if ($('#post_deleted').length > 0) {
+ $('#post_deleted').modal('show');
+ return;
+ }
+ }
+
var currentPosts = PostStore.getPosts(currentSelected.posts[currentSelected.order[0]].channel_id);
if (!currentPosts || currentPosts.order.length === 0) {