dialog > comments : add condition to fix blocking error

This commit is contained in:
isUnknown 2025-06-17 12:26:24 +02:00
parent 8580fead7a
commit 483c3cc758

View file

@ -138,12 +138,16 @@ export const useDialogStore = defineStore('dialog', () => {
function highlight(comment) { function highlight(comment) {
const target = document.querySelector('#comment-' + comment.id); const target = document.querySelector('#comment-' + comment.id);
if (target) {
target.classList.add('highlight'); target.classList.add('highlight');
} }
}
function unhighlight(comment) { function unhighlight(comment) {
const target = document.querySelector('#comment-' + comment.id); const target = document.querySelector('#comment-' + comment.id);
if (target) {
target.classList.remove('highlight'); target.classList.remove('highlight');
} }
}
return { return {
content, content,