codacy fixes

This commit is contained in:
Zlash65 2019-02-13 16:33:42 +05:30 committed by Rohit Waghchaure
parent 11bba571af
commit 01086ff60c

View File

@ -19,7 +19,7 @@ frappe.treeview_settings["Account"] = {
args: {
company: company,
},
callback: function(r, rt) {
callback: function(r) {
if(r.message) {
let root_company = r.message.length ? r.message[0] : "";
me.page.fields_dict.root_company.set_value(root_company);
@ -137,7 +137,7 @@ frappe.treeview_settings["Account"] = {
!frappe.treeview_settings['Account'].treeview.page.fields_dict.root_company.get_value() &&
node.expandable && !node.hide_add;
},
click: function(node) {
click: function() {
var me = frappe.treeview_settings['Account'].treeview;
me.new_node();
},