Skip to content

NOW MANAGED ON CODEBERG

Fixes the comment check for linked comment.

Abijeet6920d6eef105
diff --git a/resources/assets/js/vues/page-comments.js b/resources/assets/js/vues/page-comments.js
index 4cdee05ed..6a550e991 100644
--- a/resources/assets/js/vues/page-comments.js
+++ b/resources/assets/js/vues/page-comments.js
@@ -104,11 +104,9 @@ function getUrlParameter(name) {
function focusLinkedComment(linkedCommentId) {
let comment = document.getElementById(linkedCommentId);
- if (comment && comment.length === 0) {
- return;
+ if (comment && comment.length !== 0) {
+ window.setupPageShow.goToText(linkedCommentId);
}
-
- window.setupPageShow.goToText(linkedCommentId);
}
module.exports = {