Commit a990469
committed
Fix broken search on list pages (articles, podcast)
The client-side search filter threw a TypeError on every card because
data-tags is only rendered when an article has tags, but no articles use
tags (they use categories). Reading item.dataset.tags returned undefined
and calling .includes() on it aborted the filter loop, so search did
nothing.
Default the dataset reads to empty strings so missing attributes no
longer crash the filter.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Px3dibHBwyDeWD2HMwwzoX1 parent c5d866f commit a990469
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
211 | | - | |
212 | | - | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| |||
0 commit comments