Merge pull request #6963 from deepeshgarg007/base_list

fix: Filter out null values form field array
This commit is contained in:
Suraj Shetty 2019-02-20 16:17:49 +05:30 committed by GitHub
commit 06841e80d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]);
}