fix: Solve the problem that the filter conditions are regarded as the same when the filter values are equivalent arrays in the filter

This commit is contained in:
Fierflame 2023-12-26 20:17:58 +08:00
parent 854cebd5b1
commit 3ee00cf1e4

View file

@ -265,10 +265,7 @@ frappe.ui.FilterGroup = class {
let value = filter_value[3];
let equal = frappe.utils.arrays_equal;
if (
equal(f_value.slice(0, 4), filter_value.slice(0, 4)) ||
(Array.isArray(value) && equal(value, f_value[3]))
) {
if (equal(f_value.slice(0, 4), filter_value.slice(0, 4))) {
exists = true;
}
});