Merge pull request #10911 from prssanna/view-header-fix
fix: only render header if columns exist
This commit is contained in:
commit
211a45ae4f
2 changed files with 9 additions and 1 deletions
|
|
@ -528,6 +528,10 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
|
|||
}
|
||||
|
||||
get_header_html() {
|
||||
if (!this.columns) {
|
||||
return;
|
||||
}
|
||||
|
||||
const subject_field = this.columns[0].df;
|
||||
let subject_html = `
|
||||
<input class="level-item list-check-all hidden-xs" type="checkbox" title="${__("Select All")}">
|
||||
|
|
@ -1146,7 +1150,7 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
|
|||
});
|
||||
this.toggle_result_area();
|
||||
this.render_list();
|
||||
if (this.$checks.length) {
|
||||
if (this.$checks && this.$checks.length) {
|
||||
this.set_rows_as_checked();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -73,6 +73,10 @@ frappe.views.KanbanView = class KanbanView extends frappe.views.ListView {
|
|||
});
|
||||
}
|
||||
|
||||
render_list() {
|
||||
|
||||
}
|
||||
|
||||
on_filter_change() {
|
||||
if (JSON.stringify(this.board.filters_array) !== JSON.stringify(this.filter_area.get())) {
|
||||
this.page.set_indicator(__('Not Saved'), 'orange');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue