Skip to content

Commit 7ff06cf

Browse files
committed
fix
1 parent dbd5fb4 commit 7ff06cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Feed/FeedComments.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ class FeedComments extends React.Component {
324324
allMembers={allMembers}
325325
projectMembers={projectMembers}
326326
noInfo={item.noInfo}
327-
canDelete={idx !== comments.length - 1} // cannot delete the first post which is now shown as a last one
327+
canDelete={comments && (idx !== comments.length - 1)} // cannot delete the first post which is now shown as a last one
328328
commentAnchorPrefix={commentAnchorPrefix}
329329
>
330330
<div dangerouslySetInnerHTML={{__html: markdownToHTML(itemContent)}} />

0 commit comments

Comments
 (0)