Commit 7ac9c13
Fix boolean facet filtering in browser
Fixed bug where boolean facets (High Metal Content, High REE Content) showed
correct counts but returned no results when selected.
Issue: HTML data attributes convert all values to strings, so the boolean
value 'true' in the data was being compared to the string "true" from the
checkbox filter, causing comparison to fail.
Solution: Added type-aware filtering logic that converts boolean values to
strings before comparison when the facet type is 'boolean'.
Now users can successfully filter by:
- High Metal Content: true (960 media)
- High REE Content: true (913 media)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 74ad340 commit 7ac9c13
1 file changed
+15
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
416 | 420 | | |
| 421 | + | |
417 | 422 | | |
418 | 423 | | |
419 | 424 | | |
420 | 425 | | |
421 | 426 | | |
422 | | - | |
423 | | - | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
424 | 437 | | |
425 | 438 | | |
426 | 439 | | |
| |||
0 commit comments