fix(UX): list filter take zero as null (#25156)

* fix: list filter take zero as null

* chore: fallback if null only

---------

Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
This commit is contained in:
Kunhi 2024-03-04 14:12:35 +04:00 committed by GitHub
parent bfb1c3e7e1
commit 7d7468c45f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -422,7 +422,7 @@ frappe.ui.filter_utils = {
get_selected_value(field, condition) {
if (!field) return;
let val = field.get_value() || field.value;
let val = field.get_value() ?? field.value;
if (typeof val === "string") {
val = strip(val);