Skip to content

Commit

Permalink
fix: check is_translatable link (#24739) (#24747)
Browse files Browse the repository at this point in the history
(cherry picked from commit 985c95e)

Co-authored-by: Nihantra C. Patel <141945075+Nihantra-Patel@users.noreply.github.com>
  • Loading branch information
mergify[bot] and Nihantra-Patel committed Feb 5, 2024
1 parent 4d14ecd commit e21e2ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/public/js/frappe/form/controls/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ frappe.ui.form.ControlLink = class ControlLink extends frappe.ui.form.ControlDat
return this.is_translatable() ? __(value) : value;
}
is_translatable() {
return frappe.boot?.translated_doctypes || [].includes(this.get_options());
return (frappe.boot?.translated_doctypes || []).includes(this.get_options());
}
is_title_link() {
return (frappe.boot?.link_title_doctypes || []).includes(this.get_options());
Expand Down

0 comments on commit e21e2ca

Please sign in to comment.