fix: Use instead of .toString to avoid exception

This commit is contained in:
Suraj Shetty 2023-07-10 12:57:49 +05:30
parent 0665712c1d
commit 5903c2495f

View file

@ -177,8 +177,8 @@ frappe.ui.form.ControlAutocomplete = class ControlAutoComplete extends frappe.ui
options = options.map((o) => {
if (typeof o !== "string") {
o.label = o.label.toString();
o.value = o.value.toString();
o.label = cstr(o.label);
o.value = cstr(o.value);
}
return o;
});