fix: translate autocomplete options label

This commit is contained in:
Shariq Ansari 2023-07-11 16:11:29 +05:30
parent d363452b32
commit 94583340ec

View file

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