Merge pull request #19677 from phot0n/commentcountui

fix(minor): show 0 as comment count if _comment_count doesnt exist
This commit is contained in:
Ritwik Puri 2023-01-20 13:52:39 +05:30 committed by GitHub
commit 98191c5a94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 += `