fix: ignore undefined fields on new doctype form
This commit is contained in:
parent
0e92fc9bf5
commit
276b11d331
1 changed files with 3 additions and 3 deletions
|
|
@ -836,9 +836,9 @@ $.extend(frappe.model, {
|
|||
}
|
||||
|
||||
if (
|
||||
(frm.doc.fields.find((i) => i.fieldname === "latitude") &&
|
||||
frm.doc.fields.find((i) => i.fieldname === "longitude")) ||
|
||||
frm.doc.fields.find(
|
||||
(frm.doc.fields?.find((i) => i.fieldname === "latitude") &&
|
||||
frm.doc.fields?.find((i) => i.fieldname === "longitude")) ||
|
||||
frm.doc.fields?.find(
|
||||
(i) => i.fieldname === "location" && i.fieldtype == "Geolocation"
|
||||
)
|
||||
) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue