Browse Source

fix: codacy

version-14
Himanshu Warekar 5 years ago
parent
commit
6fc5cb584f
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      frappe/public/js/frappe/ui/toolbar/tag_utils.js

+ 5
- 4
frappe/public/js/frappe/ui/toolbar/tag_utils.js View File

@@ -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],

};


Loading…
Cancel
Save