From d8aad0d4c66544dc0047af56366f7c37ebf9a3dc Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Wed, 2 Nov 2016 10:54:38 -0400 Subject: Checking the post is not deleted before displaying attachments (#4426) --- webapp/components/post_view/components/post_body.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webapp') diff --git a/webapp/components/post_view/components/post_body.jsx b/webapp/components/post_view/components/post_body.jsx index c23939c1f..5db3e74ce 100644 --- a/webapp/components/post_view/components/post_body.jsx +++ b/webapp/components/post_view/components/post_body.jsx @@ -141,7 +141,7 @@ export default class PostBody extends React.Component { } let fileAttachmentHolder = null; - if ((post.file_ids && post.file_ids.length > 0) || (post.filenames && post.filenames.length > 0)) { + if (((post.file_ids && post.file_ids.length > 0) || (post.filenames && post.filenames.length > 0)) && this.props.post.state !== Constants.POST_DELETED) { fileAttachmentHolder = (