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:
parent
bfb1c3e7e1
commit
7d7468c45f
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue