From 6920d6eef10534ae360af685074c2b8e5428bc22 Mon Sep 17 00:00:00 2001 From: Abijeet Date: Tue, 22 Aug 2017 01:39:09 +0530 Subject: [PATCH] Fixes the comment check for linked comment. --- resources/assets/js/vues/page-comments.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 = {