Skip to content

Commit

Permalink
fix(UX): list filter take zero as null (#25156) (#25221)
Browse files Browse the repository at this point in the history
* fix: list filter take zero as null

* chore: fallback if null only

---------

Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
(cherry picked from commit 7d7468c)

Co-authored-by: Kunhi <kunhimohamed6@gmail.com>
  • Loading branch information
mergify[bot] and kunhimohamed committed Mar 4, 2024
1 parent 59791dc commit d04607a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/public/js/frappe/ui/filters/filter.js
Expand Up @@ -418,7 +418,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);
Expand Down

0 comments on commit d04607a

Please sign in to comment.