fix: do not validate if options is undefined

This commit is contained in:
Shariq Ansari 2021-12-28 19:10:59 +05:30
parent 2d5c5c7f10
commit 0fd20c7862

View file

@ -456,6 +456,8 @@ frappe.ui.form.ControlLink = class ControlLink extends frappe.ui.form.ControlDat
this.docname, value);
}
validate_link_and_fetch(df, options, docname, value) {
if (!options) return;
let field_value = "";
const fetch_map = this.fetch_map;
const columns_to_fetch = Object.values(fetch_map);