mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
only use new-comment tag if there's really new comment
This commit is contained in:
parent
fd8907dd3a
commit
42f8f96e34
3 changed files with 7 additions and 2 deletions
|
@ -22,7 +22,11 @@ const NodeHorizontalCard: FC<Props> = ({ node, hasNew, onClick }) => (
|
|||
<Anchor
|
||||
key={node.id}
|
||||
className={styles.item}
|
||||
href={getNewCommentAnchor(URLS.NODE_URL(node.id))}
|
||||
href={
|
||||
hasNew
|
||||
? getNewCommentAnchor(URLS.NODE_URL(node.id))
|
||||
: URLS.NODE_URL(node.id)
|
||||
}
|
||||
onClick={onClick}
|
||||
>
|
||||
<div
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue