Skip to content

Commit

Permalink
When selecting a location filter drop down in the calendar the page g…
Browse files Browse the repository at this point in the history
…oes blank (#665)

fixed filter location
  • Loading branch information
dzonidoo authored Nov 24, 2023
1 parent 1cec47c commit e723175
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,15 @@ function SearchResultsFiltersRow({
<Tag
key={`tags-filters--${filter}`}
testId={`tags-filters--agenda-quick-filters-${filter}`}
text={filter === 'coverage_status'
? getActiveFilterLabel(agendaCoverageStatusFilter, activeFilter)
: activeFilter?.[filter as IActiveFilterUnionType]
}
text={(() => {
if (filter === 'coverage_status') {
return getActiveFilterLabel(agendaCoverageStatusFilter, activeFilter);
} else if (filter === 'location') {
return activeFilter?.[filter as IActiveFilterUnionType].name;
} else {
return activeFilter?.[filter as IActiveFilterUnionType];
}
})()}
readOnly={readonly}
onClick={(event) => {
event.preventDefault();
Expand Down

0 comments on commit e723175

Please sign in to comment.