Merge pull request #36960 from kaulith/fix-workspace-card-filter
This commit is contained in:
commit
3ba5e10144
1 changed files with 1 additions and 8 deletions
|
|
@ -208,7 +208,7 @@ frappe.dashboard_utils = {
|
|||
: null;
|
||||
|
||||
if (!dynamic_filters || !Object.keys(dynamic_filters).length) {
|
||||
return this.cleanup_filters(filters);
|
||||
return filters;
|
||||
}
|
||||
|
||||
if (Array.isArray(dynamic_filters)) {
|
||||
|
|
@ -232,13 +232,6 @@ frappe.dashboard_utils = {
|
|||
Object.assign(filters, dynamic_filters);
|
||||
}
|
||||
|
||||
return this.cleanup_filters(filters);
|
||||
},
|
||||
cleanup_filters(filters) {
|
||||
if (filters.length && filters[0].length == 5) {
|
||||
filters.pop();
|
||||
return filters;
|
||||
}
|
||||
return filters;
|
||||
},
|
||||
get_dashboard_link_field() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue