diff --git a/frappe/public/js/frappe/form/grid_row.js b/frappe/public/js/frappe/form/grid_row.js index f0795f1213..27ca3dba0c 100644 --- a/frappe/public/js/frappe/form/grid_row.js +++ b/frappe/public/js/frappe/form/grid_row.js @@ -40,7 +40,7 @@ export default class GridRow { render_row = this.render_row(); } - if (!this.render_row) return; + if (!render_row) return; this.set_data(); this.wrapper.appendTo(this.parent); @@ -762,7 +762,8 @@ export default class GridRow { show_search_row() { // show or remove search columns based on grid rows - this.show_search = this.show_search && this.grid?.data?.length >= 20; + this.show_search = + this.show_search && (this.grid?.data?.length >= 20 || this.grid.filter_applied); !this.show_search && this.wrapper.remove(); return this.show_search; }