Skip to content

Commit

Permalink
minor style change
Browse files Browse the repository at this point in the history
  • Loading branch information
aanunez committed Sep 23, 2022
1 parent b5d115e commit 9422932
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/viewTweaks.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,13 +325,13 @@ ReportTweaks.fn.rangeSearch = (settings, data, dataIndex) => {
datum = isNumeric(datum) ? Number(datum) : ReportTweaks.isMdyDate.test(datum) ? date_mdy2ymd(datum.replaceAll('/', '-')) : datum;

// Apply filter
if ((min === "" && max === "") ||
return (
(min === "" && max === "") ||
(field === "") ||
(min === "" && datum <= max) ||
(min <= datum && max === "") ||
(min <= datum && datum <= max))
return true;
return false;
(min <= datum && datum <= max)
)
}

/*
Expand Down

0 comments on commit 9422932

Please sign in to comment.