mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-01-03 23:42:28 +03:00
Fixes the comment check for linked comment.
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user