Commit 8ace484
committed
fix(table-core): use autoRemove instead of resolveFilterValue on comparison filter fns
filterFn_greaterThan, filterFn_greaterThanOrEqualTo, filterFn_lessThan,
and filterFn_lessThanOrEqualTo incorrectly used .resolveFilterValue
instead of .autoRemove. This corrupted filter values — e.g. "price > 50"
became "price > false" (coerced to "price > 0") because testFalsy(50)
returns false, and false is not nullish so the ?? fallback doesn't apply.
Fixes #62121 parent e59f732 commit 8ace484
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
| 179 | + | |
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| |||
0 commit comments