summaryrefslogtreecommitdiffstats
path: root/webapp/components/post_view/post_attachment_list.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/post_view/post_attachment_list.jsx')
-rw-r--r--webapp/components/post_view/post_attachment_list.jsx6
1 files changed, 6 insertions, 0 deletions
diff --git a/webapp/components/post_view/post_attachment_list.jsx b/webapp/components/post_view/post_attachment_list.jsx
index cfd2f81f8..ce60a0155 100644
--- a/webapp/components/post_view/post_attachment_list.jsx
+++ b/webapp/components/post_view/post_attachment_list.jsx
@@ -10,6 +10,11 @@ export default class PostAttachmentList extends React.PureComponent {
static propTypes = {
/**
+ * The post id
+ */
+ postId: PropTypes.string.isRequired,
+
+ /**
* Array of attachments to render
*/
attachments: PropTypes.array.isRequired
@@ -21,6 +26,7 @@ export default class PostAttachmentList extends React.PureComponent {
content.push(
<PostAttachment
attachment={attachment}
+ postId={this.props.postId}
key={'att_' + i}
/>
);