Skip to content

fix(filterselect): handle nullish entries in selecteditems#1515

Merged
dzucconi merged 2 commits intomainfrom
dzucconi/fix/di-87--filter-crash
Apr 7, 2026
Merged

fix(filterselect): handle nullish entries in selecteditems#1515
dzucconi merged 2 commits intomainfrom
dzucconi/fix/di-87--filter-crash

Conversation

@dzucconi
Copy link
Copy Markdown
Member

@dzucconi dzucconi commented Apr 7, 2026

We can see this in production in some instances. I'm not sure how you can into this state naturally; as the filter aggregations should just not show up. But URLs accessed directly can reproduce it. (Currently: https://www.artsy.net/collect?location_cities%5B0%5D=Tel%20Aviv-Yafo%2C%20Israel&acquireable=true&offerable=true)

cc @artsy/diamond-devs

@dzucconi dzucconi requested a review from a team April 7, 2026 12:09
@dzucconi dzucconi self-assigned this Apr 7, 2026
@dzucconi
Copy link
Copy Markdown
Member Author

dzucconi commented Apr 7, 2026

It's worth noting: I'll fix this in Force as well. The type here was correct, there's a type assertion that causes the issue on Forces side. We just can't really trust the consumers though, so.

@dzucconi dzucconi merged commit 2dba854 into main Apr 7, 2026
12 checks passed
@dzucconi dzucconi deleted the dzucconi/fix/di-87--filter-crash branch April 7, 2026 12:19
@artsyit
Copy link
Copy Markdown
Contributor

artsyit commented Apr 7, 2026

🚀 PR was released in @artsy/palette-charts@45.9.2, @artsy/palette@46.9.2 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants