refactor: refactored code
This commit is contained in:
parent
65db85d559
commit
2788c84ce5
1 changed files with 3 additions and 6 deletions
|
|
@ -1896,13 +1896,10 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
|
|||
};
|
||||
|
||||
const is_bulk_editable = (doctype) => {
|
||||
if (
|
||||
this.list_view_settings &&
|
||||
this.list_view_settings.disable_edit!=undefined
|
||||
) {
|
||||
return !this.list_view_settings.disable_edit;
|
||||
if (this.list_view_settings && this.list_view_settings.disable_edit != undefined) {
|
||||
return !this.list_view_settings.disable_edit;
|
||||
}
|
||||
return !frappe.model.has_workflow(doctype)
|
||||
return !frappe.model.has_workflow(doctype);
|
||||
};
|
||||
|
||||
// utility
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue