Checking the post is not deleted before displaying attachments (#4426)
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
b8fcc0a5c4
Коммит
d8aad0d4c6
@@ -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}
|
||||
|
||||
Ссылка в новой задаче
Block a user