Skip to content

Commit dbd5fb4

Browse files
committed
fix: should be able to delete the first post in the topic, which in reverse order is last one
1 parent e5b2c37 commit dbd5fb4

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 !== 0}
327+
canDelete={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)