diff --git a/frappe/public/js/frappe/ui/toolbar/tag_utils.js b/frappe/public/js/frappe/ui/toolbar/tag_utils.js index 12ede1cfcb..0982260624 100644 --- a/frappe/public/js/frappe/ui/toolbar/tag_utils.js +++ b/frappe/public/js/frappe/ui/toolbar/tag_utils.js @@ -50,9 +50,6 @@ frappe.tags.utils = { } function make_description(content) { - if (!content) { - return ""; - } var field_length = 110; var field_value = null; if (content.length > field_length) { @@ -66,10 +63,14 @@ frappe.tags.utils = { data.forEach(function(d) { // more properties + var description = ""; + if (d.content) { + description = make_description(d.content); + } result = { label: d.name, value: d.name, - description: make_description(d.content), + description: description, route: ['Form', d.doctype, d.name], };