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,11 +138,15 @@ export const useDialogStore = defineStore('dialog', () => {
function highlight(comment) {
const target = document.querySelector('#comment-' + comment.id);
target.classList.add('highlight');
if (target) {
target.classList.add('highlight');
}
}
function unhighlight(comment) {
const target = document.querySelector('#comment-' + comment.id);
target.classList.remove('highlight');
if (target) {
target.classList.remove('highlight');
}
}
return {