Merge pull request #19677 from phot0n/commentcountui
fix(minor): show 0 as comment count if _comment_count doesnt exist
This commit is contained in:
commit
98191c5a94
1 changed files with 1 additions and 1 deletions
|
|
@ -896,7 +896,7 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
|
|||
|
||||
const comment_count = `<span class="comment-count">
|
||||
${frappe.utils.icon("small-message")}
|
||||
${doc._comment_count > 99 ? "99+" : doc._comment_count}
|
||||
${doc._comment_count > 99 ? "99+" : doc._comment_count || 0}
|
||||
</span>`;
|
||||
|
||||
html += `
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue