From a8d66889551c5e5dbb4c998a7e44390214b02cf9 Mon Sep 17 00:00:00 2001 From: "sentry[bot]" <39604003+sentry[bot]@users.noreply.github.com> Date: Sat, 5 Sep 2026 22:50:07 +0000 Subject: [PATCH] fix(discover): Prevent homepage crash on unmapped dataset param --- static/app/views/discover/results.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/app/views/discover/results.tsx b/static/app/views/discover/results.tsx index 8ae796fc60d1..18132d50c0cd 100644 --- a/static/app/views/discover/results.tsx +++ b/static/app/views/discover/results.tsx @@ -442,7 +442,9 @@ export class Results extends Component { const value = getSavedQueryDataset(organization, location, savedQuery, splitDecision); const defaultEventView = hasDatasetSelector(organization) - ? (getSavedQueryWithDataset(DEFAULT_EVENT_VIEW_MAP[value]) as NewQuery) + ? (getSavedQueryWithDataset( + DEFAULT_EVENT_VIEW_MAP[value] ?? DEFAULT_EVENT_VIEW + ) as NewQuery) : DEFAULT_EVENT_VIEW; const query = isHomepage && savedQuery ? omit(savedQuery, 'id') : defaultEventView;