mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +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
|
@ -68,6 +68,7 @@ const NodeComments: FC<Props> = observer(({ order }) => {
|
|||
return null;
|
||||
}
|
||||
|
||||
/** Scrolls down to new comments or specific one from anchor */
|
||||
useEffect(() => {
|
||||
const anchor = location.hash?.replace('#', '');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue