fix: remove trailing quote from formatter html

Related issue: FR-ISS-256268
This commit is contained in:
Ankush Menat 2021-02-17 14:35:14 +05:30
parent 7beaf81e07
commit c02a7ef214
No known key found for this signature in database
GPG key ID: 8EA82E09BBD13AAF

View file

@ -1498,7 +1498,7 @@ frappe.ui.form.Form = class FrappeForm {
const escaped_name = encodeURIComponent(value);
return `<a class="indicator ${get_color(doc || {})}" href="/app/${frappe.router.slug(df.options)}/${escaped_name}" data-doctype="${doctype}" data-name="${value}">${label}</a>'`;
return `<a class="indicator ${get_color(doc || {})}" href="/app/${frappe.router.slug(df.options)}/${escaped_name}" data-doctype="${doctype}" data-name="${value}">${label}</a>`;
} else {
return '';
}