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;