diff --git a/CHANGELOG.md b/CHANGELOG.md index e9b420dd4..1f7e2e580 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - ServiceWorker: don't serve favicon, robots.txt, and others from ServiceWorker. - Datepicker: correctly default to the current year. - Scheduled posts: fix page crashing on deleting a scheduled post. +- Events: don't crash when searching for a location. ## [3.0.0] - 2022-12-25 diff --git a/app/soapbox/components/autosuggest-location.tsx b/app/soapbox/components/autosuggest-location.tsx index 6b6eee434..fab4493c9 100644 --- a/app/soapbox/components/autosuggest-location.tsx +++ b/app/soapbox/components/autosuggest-location.tsx @@ -32,7 +32,7 @@ const AutosuggestLocation: React.FC = ({ id }) => { {location.description} - {[location.street, location.locality, location.country].filter(val => val.trim()).join(' · ')} + {[location.street, location.locality, location.country].filter(val => val?.trim()).join(' · ')} );