From 91cdf1eb5aecee52ff7c7f828314df6a5af600b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Thu, 5 Jan 2023 17:14:18 +0100 Subject: [PATCH 1/2] Fix events location search crash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- app/soapbox/components/autosuggest-location.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(' · ')} ); From 8036afc6bb7d96ccae1e18155b4f89f0c6086196 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 5 Jan 2023 10:20:57 -0600 Subject: [PATCH 2/2] CHANGELOG: fix events crash --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) 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