fix: Duplicate name columns in list_view when no title field defined (#14006)
* fix duplicate name columns in list_view when no title field defined * refactor: Simplify code Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
This commit is contained in:
parent
d8a264e1d2
commit
586835a833
1 changed files with 1 additions and 0 deletions
|
|
@ -367,6 +367,7 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
|
|||
|
||||
if (
|
||||
!this.settings.hide_name_column &&
|
||||
this.meta.title_field &&
|
||||
this.meta.title_field !== 'name'
|
||||
) {
|
||||
this.columns.push({
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue