refactor: refactored code

This commit is contained in:
root 2024-08-19 13:16:47 +05:30 committed by Akhil Narang
parent 65db85d559
commit 2788c84ce5
No known key found for this signature in database
GPG key ID: 9DCC61E211BF645F

View file

@ -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