Skip to content

Commit

Permalink
fix: hide number counter for new document view shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavesh95863 committed Feb 4, 2024
1 parent db4d36f commit bb46d23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frappe/public/js/frappe/widgets/shortcut_widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ export default class ShortcutWidget extends Widget {
this.widget.addClass("shortcut-widget-box");

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,
Expand Down

0 comments on commit bb46d23

Please sign in to comment.