fix(base_list): setup_filter_area error handling

This commit is contained in:
Saif Ur Rehman 2023-09-20 14:49:56 +05:00 committed by GitHub
parent 69b0fcf06e
commit b5ff562142
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -308,7 +308,9 @@ frappe.views.BaseList = class BaseList {
this.filter_area = new FilterArea(this);
if (this.filters && this.filters.length > 0) {
return this.filter_area.set(this.filters);
return this.filter_area.set(this.filters).catch(() => {
this.filter_area.clear(false);
});
}
}