refactor: Remove redundant code

This commit is contained in:
Suraj Shetty 2020-04-09 20:11:02 +05:30 committed by GitHub
parent 62b48aeca4
commit d7dc9bf64e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,7 +64,7 @@ frappe.views.ListGroupBy = class ListGroupBy {
if (!docfield) {
return;
}
fieldtype = frappe.meta.get_docfield(this.doctype, fieldname).fieldtype;
fieldtype = docfield.fieldtype;
}
return `<li class="group-by-field list-link">