style: use const instead of let

This commit is contained in:
Sagar Vora 2023-03-01 15:19:36 +05:30
parent 9a88acfce4
commit 1ed4b2d30e

View file

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