Merge pull request #6963 from deepeshgarg007/base_list
fix: Filter out null values form field array
This commit is contained in:
commit
06841e80d4
1 changed files with 3 additions and 1 deletions
|
|
@ -104,7 +104,9 @@ frappe.views.BaseList = class BaseList {
|
|||
}
|
||||
return f;
|
||||
});
|
||||
//de-dup
|
||||
// remove null or undefined values
|
||||
this.fields = this.fields.filter(Boolean);
|
||||
//de-duplicate
|
||||
this.fields = this.fields.uniqBy(f => f[0] + f[1]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue