Browse Source

fix: ignore if df doesn't exist (#18358) (#18360)

(cherry picked from commit b03e0752b9)

Co-authored-by: Ankush Menat <ankush@frappe.io>
version-14
mergify[bot] 2 years ago
committed by GitHub
parent
commit
e9ecef7c11
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      frappe/public/js/frappe/ui/field_group.js

+ 3
- 0
frappe/public/js/frappe/ui/field_group.js View File

@@ -169,6 +169,9 @@ frappe.ui.FieldGroup = class FieldGroup extends frappe.ui.form.Layout {
} }


set_df_property(fieldname, prop, value) { set_df_property(fieldname, prop, value) {
if (!fieldname) {
return;
}
const field = this.get_field(fieldname); const field = this.get_field(fieldname);
field.df[prop] = value; field.df[prop] = value;
field.refresh(); field.refresh();


Loading…
Cancel
Save