Checking the post is not deleted before displaying attachments (#4426)

This commit is contained in:
Christopher Speller
2016-11-02 10:54:38 -04:00
committed by Joram Wilander
parent b8fcc0a5c4
commit d8aad0d4c6

View File

@@ -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 = (
<FileAttachmentListContainer
post={post}