process error
This commit is contained in:
parent
65a2bbaa8d
commit
a00d9cbff1
3 changed files with 24 additions and 8 deletions
|
|
@ -133,9 +133,13 @@ function closeAddField() {
|
|||
}
|
||||
|
||||
function setStatus(comment) {
|
||||
if (user?.notifications?.comments.hasOwnProperty(comment.id)) {
|
||||
return "unread";
|
||||
} else {
|
||||
try {
|
||||
if (user?.notifications?.comments.hasOwnProperty(comment.id)) {
|
||||
return "unread";
|
||||
} else {
|
||||
return undefined;
|
||||
}
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue