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

Этот коммит содержится в:
Christopher Speller
2016-11-02 10:54:38 -04:00
коммит произвёл Joram Wilander
родитель b8fcc0a5c4
Коммит d8aad0d4c6

Просмотреть файл

@@ -141,7 +141,7 @@ export default class PostBody extends React.Component {
} }
let fileAttachmentHolder = null; 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 = ( fileAttachmentHolder = (
<FileAttachmentListContainer <FileAttachmentListContainer
post={post} post={post}