From 1ed4b2d30e9b0141e6d5417c4e4262541bc412fc Mon Sep 17 00:00:00 2001 From: Sagar Vora Date: Wed, 1 Mar 2023 15:19:36 +0530 Subject: [PATCH] style: use `const` instead of `let` --- frappe/custom/doctype/customize_form/customize_form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/custom/doctype/customize_form/customize_form.js b/frappe/custom/doctype/customize_form/customize_form.js index 40c8dad088..c420dca3e4 100644 --- a/frappe/custom/doctype/customize_form/customize_form.js +++ b/frappe/custom/doctype/customize_form/customize_form.js @@ -251,7 +251,7 @@ frappe.ui.form.on("Customize Form", { // can't delete standard fields frappe.ui.form.on("Customize Form Field", { before_fields_remove: function (frm, doctype, name) { - let row = frappe.get_doc(doctype, name); + const row = frappe.get_doc(doctype, name); if (row.is_system_generated) { frappe.throw(