fix: hide number counter for new document view shortcut

(cherry picked from commit bb46d23772cfa9ad2e23a24325b16ed17fdfee6c)
This commit is contained in:
bhavesh95863 2024-02-05 04:08:19 +05:30 committed by Mergify
parent dc6d71e84b
commit b4b4d8f22f

View file

@ -79,7 +79,8 @@ export default class ShortcutWidget extends Widget {
});
let filters = frappe.utils.process_filter_expression(this.stats_filter);
if (this.type == "DocType" && filters) {
if (this.type == "DocType" && this.doc_view != "New" && filters) {
frappe.db
.count(this.link_to, {
filters: filters,