Skip to content

Commit

Permalink
fix(search): Stop sending invalid start/end dates to tag values endpo…
Browse files Browse the repository at this point in the history
…int (#73579)

A long existing bug, we've been sending "Invalid date" when there are no
start/end dates.
  • Loading branch information
malwilley authored Jul 1, 2024
1 parent 36fd5f5 commit eaa6690
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions static/app/views/issueList/searchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,12 @@ function IssueListSearchBar({organization, tags, ...props}: Props) {
const orgSlug = organization.slug;
const projectIds = pageFilters.projects.map(id => id.toString());
const endpointParams = {
start: getUtcDateString(pageFilters.datetime.start),
end: getUtcDateString(pageFilters.datetime.end),
start: pageFilters.datetime.start
? getUtcDateString(pageFilters.datetime.start)
: undefined,
end: pageFilters.datetime.end
? getUtcDateString(pageFilters.datetime.end)
: undefined,
statsPeriod: pageFilters.datetime.period,
};

Expand Down

0 comments on commit eaa6690

Please sign in to comment.