fix: Use instead of .toString to avoid exception
This commit is contained in:
parent
0665712c1d
commit
5903c2495f
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue